From 0aef3534bff370b5803c610bda3e5e97dbd42451 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Fri, 21 Dec 2007 08:47:19 +0000 Subject: [PATCH] Fixing documentation for javascript layout functions. svn changeset:3290/svn branch:trunk --- .../terminal/gwt/client/ui/ICustomLayout.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java index b96c99dfad..b16fa8b660 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java @@ -427,11 +427,17 @@ public class ICustomLayout extends ComplexPanel implements Paintable, /** * In custom layout one may want to run layout functions made with * JavaScript. This function tests if one exists (with name "iLayoutJS" in - * layouts first DOM node) and runs if it. Return value is used to determine - * is children needs to be notified of size changes. + * layouts first DOM node) and runs et. Return value is used to determine if + * children needs to be notified of size changes. + * + * Note! When implementing a JS layout function you most likely want to call + * notifyChildrenOfSizeChange() function on your custom layouts main + * element. That method is used to control whether child components layout + * functions are to be run. * * @param el - * @return true if layout function was run and it returned true. + * @return true if layout function exists and was run successfully, else + * false. */ private native boolean iLayoutJS(Element el) /*-{ -- 2.39.5