On font size change, call onResize on the renderer to force update of scrollbars/wrap data

This commit is contained in:
Julian Viereck 2011-02-15 18:43:42 +08:00 • committed by Fabian Jakobs
commit b4d107284d

View file

@ -103,6 +103,7 @@ var VirtualRenderer = function(container, theme) {
_self.characterWidth = textLayer.getCharacterWidth(); _self.characterWidth = textLayer.getCharacterWidth();
_self.lineHeight = textLayer.getLineHeight(); _self.lineHeight = textLayer.getLineHeight();
_self.$updatePrintMargin(); _self.$updatePrintMargin();
_self.onResize(true);
_self.$loop.schedule(_self.CHANGE_FULL); _self.$loop.schedule(_self.CHANGE_FULL);
}); });