Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Styling height of view tab folder
Styling height of view tab folder [message #881073] Sun, 03 June 2012 20:48 Go to next message
Benjamin Wolff is currently offline Benjamin WolffFriend
Messages: 111
Registered: July 2009
Senior Member
Hi,

I have added some views to a perspective using an IFolderLayout. The views can be selected as tabs in a tabfolder. The tab-item headers have been increased in size in the latest default theme.

Can someone tell me how I can style the height of these tab-item headers? I tried styling TabItem and CTabItem, without success. I can style the padding left and right, but not the height.

Thank you!

Cheers,
Ben
Re: Styling height of view tab folder [message #881231 is a reply to message #881073] Mon, 04 June 2012 07:29 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1873
Registered: July 2009
Senior Member
Hi Ben,
CTabFolder has a method setTabHeight that overrides the item height set
by theming. If you want to adjust it through the theming decrease the
CSS value for CTabItem#padding or TabItem#padding.
HTH,
Ivan

On 6/3/2012 11:48 PM, Benjamin Wolff wrote:
> Hi,
>
> I have added some views to a perspective using an IFolderLayout. The
> views can be selected as tabs in a tabfolder. The tab-item headers
> have been increased in size in the latest default theme.
>
> Can someone tell me how I can style the height of these tab-item
> headers? I tried styling TabItem and CTabItem, without success. I can
> style the padding left and right, but not the height.
>
> Thank you!
>
> Cheers,
> Ben

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Styling height of view tab folder [message #882071 is a reply to message #881231] Tue, 05 June 2012 19:09 Go to previous messageGo to next message
Benjamin Wolff is currently offline Benjamin WolffFriend
Messages: 111
Registered: July 2009
Senior Member
Hi Ivan,

thanks for your response.

I already tried to adjust the padding, without success. I attached two screenshots to clarify the problem. The first image shows the tabfolder bar without any changes to the theme. The second screenshot show the bar with the following settings:

CTabItem {
padding: 0;
}

TabItem {
padding: 0;
}


The padding left and right is influenced, but not the height. Even settings a specific "height" in the theme doesn't change anything. I also searched the RAP codebase for "setTabHeight", but could not identify a place which looks like it would set the height for these tabs. Also, I could not get a handle to the tab folder so set the height programmatically.

Do you maybe have any ideas?

Cheers,
Ben


Am 04.06.2012 09:29, schrieb Ivan Furnadjiev:
> Hi Ben,
> CTabFolder has a method setTabHeight that overrides the item height set by theming. If you want to adjust it through the theming decrease the CSS value for CTabItem#padding or TabItem#padding.
> HTH,
> Ivan
>
> On 6/3/2012 11:48 PM, Benjamin Wolff wrote:
>> Hi,
>>
>> I have added some views to a perspective using an IFolderLayout. The views can be selected as tabs in a tabfolder. The tab-item headers have been increased in size in the latest default theme.
>>
>> Can someone tell me how I can style the height of these tab-item headers? I tried styling TabItem and CTabItem, without success. I can style the padding left and right, but not the height.
>>
>> Thank you!
>>
>> Cheers,
>> Ben
>
  • Attachment: tab_bar1.png
    (Size: 2.99KB, Downloaded 83 times)
  • Attachment: tab_bar2.png
    (Size: 3.17KB, Downloaded 77 times)
Re: Styling height of view tab folder [message #882093 is a reply to message #882071] Tue, 05 June 2012 20:44 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1873
Registered: July 2009
Senior Member
Hi Ben,
the ViewPart height is set by the workbench - see DefaultTabFolder line
178 and DefaultTabFolder#computeTabHeight.
HTH,
Ivan

On 6/5/2012 10:09 PM, Benjamin Wolff wrote:
> Hi Ivan,
>
> thanks for your response.
>
> I already tried to adjust the padding, without success. I attached two
> screenshots to clarify the problem. The first image shows the
> tabfolder bar without any changes to the theme. The second screenshot
> show the bar with the following settings:
>
> CTabItem {
> padding: 0;
> }
>
> TabItem {
> padding: 0;
> }
>
>
> The padding left and right is influenced, but not the height. Even
> settings a specific "height" in the theme doesn't change anything. I
> also searched the RAP codebase for "setTabHeight", but could not
> identify a place which looks like it would set the height for these
> tabs. Also, I could not get a handle to the tab folder so set the
> height programmatically.
>
> Do you maybe have any ideas?
>
> Cheers,
> Ben
>
>
> Am 04.06.2012 09:29, schrieb Ivan Furnadjiev:
>> Hi Ben,
>> CTabFolder has a method setTabHeight that overrides the item height
>> set by theming. If you want to adjust it through the theming decrease
>> the CSS value for CTabItem#padding or TabItem#padding.
>> HTH,
>> Ivan
>>
>> On 6/3/2012 11:48 PM, Benjamin Wolff wrote:
>>> Hi,
>>>
>>> I have added some views to a perspective using an IFolderLayout. The
>>> views can be selected as tabs in a tabfolder. The tab-item headers
>>> have been increased in size in the latest default theme.
>>>
>>> Can someone tell me how I can style the height of these tab-item
>>> headers? I tried styling TabItem and CTabItem, without success. I
>>> can style the padding left and right, but not the height.
>>>
>>> Thank you!
>>>
>>> Cheers,
>>> Ben
>>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:New JSON protocol doubled the traffic on GC/draw2d painting
Next Topic:Problem with popup menu
Goto Forum:
  


Current Time: Mon Dec 22 23:43:23 GMT 2014

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

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