Home » Eclipse Projects » Remote Application Platform (RAP) » Editor Tab Width(Incorrect Editor Tab Width)
Editor Tab Width [message #634791] |
Sat, 23 October 2010 15:35 |
Sudesh Bulathsinhala Messages: 193 Registered: October 2010 |
Senior Member |
|
|
editor tab width is incorrect when first time opened. i.e, the gap between the close(x) and the tab right end is not aligned properly when first time invoked. (there's too much space between close(x) button and the right side of the tab).
hence if you close the editor and reopen, it's close(x) button is closer and aligned to the right end of the editor tab.
also if you resize the editor, the placement of the close(x) button is placed correctly as expected.
note : this behavior is working as expected in rcp-client.
[Updated on: Sat, 23 October 2010 15:42] Report message to a moderator
|
|
|
Re: Editor Tab Width [message #634796 is a reply to message #634791] |
Sat, 23 October 2010 15:44 |
Ivan Furnadjiev Messages: 2426 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Sudesh,
sounds like a TextSizeDetermination issue. This occurs only first time
when you start the application after the server start-up. In this case,
RAP uses a well-guess to calculate the text dimensions, because the text
is not yet measured on the client. If you reload the browser or open the
tab again the (x) button will be aligned properly.
Best,
Ivan
On 10/23/2010 6:35 PM, Sudesh Bulathsinhala wrote:
> editor tab width is incorrect when first time opened. i.e, the gap
> between the close(x) and the tab right end is not aligned properly
> when first time invoked. hence if you close the editor and reopen,
> it's close(x) button is proportional and aligned with the editor tab
> width, like in rcp client.
>
> also if you resize the editor, the placement of the close(x) button is
> placed correctly and the length of the editor tab is proportional.
|
|
|
Re: Editor Tab Width [message #634995 is a reply to message #634796] |
Mon, 25 October 2010 11:15 |
Markus rüger Messages: 369 Registered: July 2009 |
Senior Member |
|
|
Hi Ivan
we also do have a similar issue. For example, we position fields base on
calculated width of some widgets.
This looks good if the editor is opend a second time, but looks very bad the
first time this page becomes visible.
Is it possible to check if the TextSizeDetermination was guessed or
calculated and do a redraw if it was guessed?
Any other hint is appreciated, too.
Regards,
Markus
"Ivan Furnadjiev" <ivan@eclipsesource.com> schrieb im Newsbeitrag
news:i9uvne$d7l$1@news.eclipse.org...
> Hi Sudesh,
> sounds like a TextSizeDetermination issue. This occurs only first time
> when you start the application after the server start-up. In this case,
> RAP uses a well-guess to calculate the text dimensions, because the text
> is not yet measured on the client. If you reload the browser or open the
> tab again the (x) button will be aligned properly.
> Best,
> Ivan
>
> On 10/23/2010 6:35 PM, Sudesh Bulathsinhala wrote:
>> editor tab width is incorrect when first time opened. i.e, the gap
>> between the close(x) and the tab right end is not aligned properly when
>> first time invoked. hence if you close the editor and reopen, it's
>> close(x) button is proportional and aligned with the editor tab width,
>> like in rcp client.
>>
>> also if you resize the editor, the placement of the close(x) button is
>> placed correctly and the length of the editor tab is proportional.
|
|
|
Re: Editor Tab Width [message #635007 is a reply to message #634995] |
Mon, 25 October 2010 11:56 |
Ivan Furnadjiev Messages: 2426 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Markus,
your problem is related to these bugs (I know you are familiar with them):
265279: Editor has layout problems
https://bugs.eclipse.org/bugs/show_bug.cgi?id=265279
256133: [TextSizeDetermination] Re-layouting for controls in a
ScrolledComposite
https://bugs.eclipse.org/bugs/show_bug.cgi?id=256133
The only workaround that comes to my mind is to manually do the
re-layouting in a proper moment in time - in editor setFocus for example.
I'm not sure if this will help in your case.
Best,
Ivan
On 10/25/2010 2:15 PM, Markus Kr�ger wrote:
> Hi Ivan
>
> we also do have a similar issue. For example, we position fields base on
> calculated width of some widgets.
> This looks good if the editor is opend a second time, but looks very bad the
> first time this page becomes visible.
> Is it possible to check if the TextSizeDetermination was guessed or
> calculated and do a redraw if it was guessed?
> Any other hint is appreciated, too.
>
> Regards,
> Markus
>
> "Ivan Furnadjiev"<ivan@eclipsesource.com> schrieb im Newsbeitrag
> news:i9uvne$d7l$1@news.eclipse.org...
>> Hi Sudesh,
>> sounds like a TextSizeDetermination issue. This occurs only first time
>> when you start the application after the server start-up. In this case,
>> RAP uses a well-guess to calculate the text dimensions, because the text
>> is not yet measured on the client. If you reload the browser or open the
>> tab again the (x) button will be aligned properly.
>> Best,
>> Ivan
>>
>> On 10/23/2010 6:35 PM, Sudesh Bulathsinhala wrote:
>>> editor tab width is incorrect when first time opened. i.e, the gap
>>> between the close(x) and the tab right end is not aligned properly when
>>> first time invoked. hence if you close the editor and reopen, it's
>>> close(x) button is proportional and aligned with the editor tab width,
>>> like in rcp client.
>>>
>>> also if you resize the editor, the placement of the close(x) button is
>>> placed correctly and the length of the editor tab is proportional.
>
|
|
|
Goto Forum:
Current Time: Fri Apr 26 22:34:29 GMT 2024
Powered by FUDForum. Page generated in 0.02797 seconds
|