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

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...