Browser not resizing in Dialog [message #448743] |
Mon, 01 May 2006 09:51  |
Eclipse User |
|
|
|
Hi,
I am trying to embed the web browser in a dialog. The browser shows up,
but it dosent get resized when the dialog is re-sized. I specified
SWT.RESIZE to be set for both the dialog and the web browser and have a
broder drawn for the parent composite, which gets resized as expected,
but browser maintains its size. Has anyone else run into this issue?
Any ideas?
Thank you in advance
|
|
|
|
Re: Browser not resizing in Dialog [message #448794 is a reply to message #448787] |
Tue, 02 May 2006 11:34  |
Eclipse User |
|
|
|
Grant,
That worked. What was missing was the GridData, which I thought wasnt
needed as I had created the browser using SWT.RESIZE flag.
Thank you for the help
Linda
Grant Gayed wrote:
> The Browser should behave like any other widget here. If you substitute a
> Canvas in place of the Browser, does it automatically resize with the parent
> dialog? If not then you're likely missing some required layout code.
>
> For an example of a Browser resizing to always match its parent see
> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org. eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet128 .java .
>
> Grant
>
>
> "Linda Smith" <linda_l_smith@hotmail.com> wrote in message
> news:e353iu$2la$1@utils.eclipse.org...
>
>>Hi,
>>
>>I am trying to embed the web browser in a dialog. The browser shows up,
>>but it dosent get resized when the dialog is re-sized. I specified
>>SWT.RESIZE to be set for both the dialog and the web browser and have a
>>broder drawn for the parent composite, which gets resized as expected,
>>but browser maintains its size. Has anyone else run into this issue?
>>Any ideas?
>>
>>Thank you in advance
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04101 seconds