Re: DockLayoutPanel -- Get Width/Height of center panel

2011-04-12 Thread Alexandre Ardhuin
Hi, You can retrieve the container element of your center and then get height and width. Widget centerWidget = ... ; // the widget at center Element container = myDockLayoutPanel.getWidgetContainerElement(centerWidget); int width = container.getOffsetWidth(); int height =

DockLayoutPanel -- Get Width/Height of center panel

2011-04-11 Thread Matthew Hill
Hi. I need to make a canvas element within the center panel of a DockLayoutPanel. However, to make a canvas, I must know the width and height which it will occupy. How can I obtain the width and height of the center area of a DockLayoutPanel? -- You received this message because you are

Re: DockLayoutPanel -- Get Width/Height of center panel

2011-04-11 Thread John Doran
Could you not set the size of north, south, east and west then get the size of the center based on that information. Seeing as they needed to be added to the deck before center? On Mon, Apr 11, 2011 at 11:29 PM, Matthew Hill matt2...@gmail.com wrote: Hi. I need to make a canvas element within