Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Browser not resizing in Dialog
Browser not resizing in Dialog [message #448743] Mon, 01 May 2006 09:51 Go to next message
Eclipse UserFriend
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 #448787 is a reply to message #448743] Tue, 02 May 2006 09:24 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Browser not resizing in Dialog [message #448794 is a reply to message #448787] Tue, 02 May 2006 11:34 Go to previous message
Eclipse UserFriend
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
>
>
>
Previous Topic:Override ApplicationWorkbenchWindowAdvisor
Next Topic:How to pass my context object to my View constructor
Goto Forum:
  


Current Time: Sat Aug 30 23:25:06 EDT 2025

Powered by FUDForum. Page generated in 0.04101 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top