Jump to content

fiorilli

Recommended Posts

Hi guys,

The UniGui already has support for TabBar configuration in TabPanel?

I'm trying to change the height of the tabs in PageControl the following manner

PageControl -> ClientEvents -> UniEvents -> [Ext.tab.Panel [tabPanel]] -> tabPanel.beforeInit

tabBar: { height: 25,
          defaults: { height: 20 }
}

But all my attempts, I could not change the size of the tabs.

I also tried the following methods.

config.tabBar: { height: 25,
          defaults: { height: 20 }
}

---------------------------------
config.tabBar: { height: 25 }

---------------------------------
config.tabBarHeight = 25

But also did not work.

Is there any other way to change TabBar settings?

Link to comment
Share on other sites

Hi,

 

For now try:

 

PageControl -> ClientEvents -> ExtEvents -> [Ext.tab.Panel [tabPanel]] -> afterrender fn:

function tabPanel.afterrender(sender, eOpts)
{
    var _height = 35;
    sender.tabBar.setHeight(_height);
    sender.tabBar.items.each(function(el) {
        el.setHeight(_height)
    })
}

Best regards.

Link to comment
Share on other sites

Hi Delphi Developer,

That way you said the event "afterRender" the TabPanel. The space the size of the removed height of the tab is added to the bottom of the PageControl.

 

page.jpg


Is there any way to change it without the addition of this space in the end?

Link to comment
Share on other sites

  • 4 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...