mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Use scale factor when resizing preview close button
This commit is contained in:
@@ -745,10 +745,11 @@ var Preview = Utils.defineClass({
|
||||
adjustOnStage: function() {
|
||||
let closeButton = this._closeButtonBin.get_first_child();
|
||||
let closeButtonHeight = closeButton.height;
|
||||
let maxCloseButtonSize = MAX_CLOSE_BUTTON_SIZE * scaleFactor;
|
||||
let closeButtonBorderRadius = '';
|
||||
|
||||
if (closeButton.height > MAX_CLOSE_BUTTON_SIZE) {
|
||||
closeButtonHeight = MAX_CLOSE_BUTTON_SIZE;
|
||||
if (closeButtonHeight > maxCloseButtonSize) {
|
||||
closeButtonHeight = maxCloseButtonSize;
|
||||
closeButton.set_size(closeButtonHeight, closeButtonHeight);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user