Răsfoiți Sursa

bugfix; afterLayoutHasChanged must be called

Michael 10 ani în urmă
părinte
comite
ae84d99945

+ 5 - 0
src/allplatforms/classes/Keyboard.js

@@ -327,6 +327,8 @@ SC.loadPackage({ 'Keyboard': {
                                 height: savedDimensions[i].height
                             })
                         }
+
+                        SuperGlue.get('document').do('afterLayoutHasChanged');
                     
                     });
 
@@ -365,6 +367,7 @@ SC.loadPackage({ 'Keyboard': {
                 }
 
                 SuperGlue.get('selection').do('updateDimensions');
+                SuperGlue.get('document').do('afterLayoutHasChanged');
 
 
                 (function(elements){
@@ -390,6 +393,8 @@ SC.loadPackage({ 'Keyboard': {
                                 height: savedDimensions[i].height
                             })
                         }
+
+                        SuperGlue.get('document').do('afterLayoutHasChanged');
                     
                     });
 

+ 2 - 2
src/allplatforms/classes/Selection.js

@@ -660,6 +660,7 @@ SC.loadPackage({ 'Selection': {
                                             })
                                         }
                                     }
+                                    SuperGlue.get('document').do('afterLayoutHasChanged');
                                 })
 
                             }).call(this, elements, thisElement)
@@ -673,8 +674,6 @@ SC.loadPackage({ 'Selection': {
                         }
 
 
-                        // UNDO
-                        
                         evt.stopPropagation();
                         evt.preventDefault();
 
@@ -740,6 +739,7 @@ SC.loadPackage({ 'Selection': {
                                             })
                                         }
                                     }
+                                    SuperGlue.get('document').do('afterLayoutHasChanged');
                                 })
 
                             }).call(this, elements, thisElement)