Jump to content

PageControl - how to adjust the spaces between the Tabs


GerhardV

Recommended Posts

Hi,

 

For now can you try this?!:

 

UniPageControl -> ClientEvents -> UniEvents -> Ext.tab.Panel [tabPanel] -> function tabPanel.beforeInit:

function tabPanel.beforeInit(sender, config)
{
    config.tabBar = {
        defaults: {
            margin: '0 0 0 15'
        }
    }
}

Best regards.

Link to comment
Share on other sites

Thank you sir, works like a charm!

 

I did find that exact code with a Google search but I am not always sure to which event to put it. UniEvents or ExtEvents...and then even within those I am unsure.

 

Maybe something we can add as a property to TPageControl?

Link to comment
Share on other sites

  • 2 years later...
On 12/1/2016 at 3:35 PM, Sherzod said:

Hi,

 

For now can you try this?!:

 

UniPageControl -> ClientEvents -> UniEvents -> Ext.tab.Panel [tabPanel] -> function tabPanel.beforeInit:


function tabPanel.beforeInit(sender, config)
{
    config.tabBar = {
        defaults: {
            margin: '0 0 0 15'
        }
    }
}

Best regards.

and how to change the background color?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...