Jump to content

Recommended Posts

Posted

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?

Posted

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.

Posted

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?

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...