LayoutPass on each keypress, mouseclick, ...
Tom Schindl
tom.schindl at bestsolution.at
Tue Feb 12 14:56:43 PST 2013
Hi,
While debugging a FX-JIRA I've instrumented TextAreaSkin and saw that
every keystroke, leads to relayout.
> java.lang.Exception: Stack trace
> at java.lang.Thread.dumpStack(Thread.java:1345)
> at com.sun.javafx.scene.control.skin.TextAreaSkin.computeMinWidth(TextAreaSkin.java:774)
> at javafx.scene.control.Control.computeMinWidth(Control.java:442)
> at javafx.scene.Parent.minWidth(Parent.java:887)
> at javafx.scene.layout.Region.minWidth(Region.java:1135)
> at javafx.scene.layout.Region.layoutInArea(Region.java:1818)
> at javafx.scene.layout.Region.layoutInArea(Region.java:1785)
> at javafx.scene.layout.Region.layoutInArea(Region.java:1726)
> at javafx.scene.layout.StackPane.layoutChildren(StackPane.java:337)
> at javafx.scene.Parent.layout(Parent.java:1014)
> at javafx.scene.Scene.layoutDirtyRoots(Scene.java:537)
> at javafx.scene.Scene.doLayoutPass(Scene.java:508)
> at javafx.scene.Scene.access$25(Scene.java:505)
> at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2193)
> at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:347)
> at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:524)
> at com.sun.javafx.tk.quantum.QuantumToolkit$12.run(QuantumToolkit.java:377)
> at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
Is this really needed?
Tom
--
B e s t S o l u t i o n . a t EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl geschäftsführer/CEO
------------------------------------------------------------------------
eduard-bodem-gasse 5-7/1 A-6020 innsbruck fax ++43 512 935833
http://www.BestSolution.at phone ++43 512 935834
More information about the openjfx-dev
mailing list