ImageViewer: show overview only when needed
This commit is contained in:
parent
bd46effadf
commit
c29e0c0eaf
1 changed files with 5 additions and 2 deletions
|
@ -500,7 +500,7 @@ Ox.ImageViewer = function(options, self) {
|
|||
self.$image.css(getImageCSS());
|
||||
self.$overlay.css(getOverlayCSS());
|
||||
}
|
||||
updateButtons();
|
||||
updateInterface();
|
||||
showInterface();
|
||||
hideInterface();
|
||||
}
|
||||
|
@ -536,7 +536,7 @@ Ox.ImageViewer = function(options, self) {
|
|||
}
|
||||
}
|
||||
|
||||
function updateButtons() {
|
||||
function updateInterface() {
|
||||
self.$scaleButton[
|
||||
self.zoom == self.fitZoom ? 'disableButton' : 'enableButton'
|
||||
]('fit');
|
||||
|
@ -555,6 +555,9 @@ Ox.ImageViewer = function(options, self) {
|
|||
self.$zoomButton[
|
||||
self.zoom == self.maxZoom ? 'disableButton' : 'enableButton'
|
||||
]('in');
|
||||
self.$overview[
|
||||
self.zoom == self.fitZoom ? 'hide' : 'show'
|
||||
]();
|
||||
}
|
||||
|
||||
function updateSize() {
|
||||
|
|
Loading…
Reference in a new issue