mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix : resize application on startup to adapt correctly to narrow screens
This commit is contained in:
parent
3765ce3d5e
commit
3be4c78883
@ -60,7 +60,7 @@
|
|||||||
$.subscribe(Events.USER_SETTINGS_CHANGED, $.proxy(this.onUserSettingsChange_, this));
|
$.subscribe(Events.USER_SETTINGS_CHANGED, $.proxy(this.onUserSettingsChange_, this));
|
||||||
$.subscribe(Events.FRAME_SIZE_CHANGED, $.proxy(this.onFrameSizeChanged_, this));
|
$.subscribe(Events.FRAME_SIZE_CHANGED, $.proxy(this.onFrameSizeChanged_, this));
|
||||||
|
|
||||||
this.centerColumnWrapperHorizontally_();
|
window.setTimeout(this.afterWindowResize_.bind(this), 100);
|
||||||
};
|
};
|
||||||
|
|
||||||
ns.DrawingController.prototype.initMouseBehavior = function() {
|
ns.DrawingController.prototype.initMouseBehavior = function() {
|
||||||
@ -318,7 +318,8 @@
|
|||||||
settingsContainerWidth = $('#application-action-section').outerWidth(true),
|
settingsContainerWidth = $('#application-action-section').outerWidth(true),
|
||||||
availableWidth = $('#main-wrapper').width() - leftSectionWidth - rightSectionWidth - toolsContainerWidth - settingsContainerWidth;
|
availableWidth = $('#main-wrapper').width() - leftSectionWidth - rightSectionWidth - toolsContainerWidth - settingsContainerWidth;
|
||||||
|
|
||||||
return availableWidth-50;
|
var comfortMargin = 10;
|
||||||
|
return availableWidth - comfortMargin;
|
||||||
};
|
};
|
||||||
|
|
||||||
ns.DrawingController.prototype.getContainerHeight_ = function () {
|
ns.DrawingController.prototype.getContainerHeight_ = function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user