Permalink
Browse files

Merge pull request #686 from peuter/fix-initial-page-size

call first makePageSizeValid immediately instead of queueing it
  • Loading branch information...
ChristianMayer committed Dec 24, 2017
2 parents 1d0a8cb + c00f125 commit be0c9c397d1ed42fb61c3ae86d5afc483948b9aa
Showing with 8 additions and 1 deletion.
  1. +8 −1 source/class/cv/ui/layout/ResizeHandler.js
@@ -46,6 +46,7 @@ qx.Class.define('cv.ui.layout.ResizeHandler', {
$navbarBottom: null,
width: 0,
height: 0,
__initial: true,
validationQueue: [],
@@ -235,7 +236,13 @@ qx.Class.define('cv.ui.layout.ResizeHandler', {
},
makePagesizeValid: function () {
this.queueJob("__makePagesizeValid");
if (this.__initial === true) {
// do not queue -> call now
this.__initial = false;
this.__makePagesizeValid();
} else {
this.queueJob("__makePagesizeValid");
}
},
__makePagesizeValid: function() {

0 comments on commit be0c9c3

Please sign in to comment.