Jump to content

Recommended Posts

Posted

Hi,

 

I try to make a menu at the bottom of the page and i can do it with a css but i have an issue here.

 

I set my css class (Shortcuts) to a unipanel afterrender but there is it's element style which takes objects position from delphi form. Css code;

 

element.style {
    height: 41px;
    left: 46px;
    top: 440px;
    width: 116px;
}
.Shortcuts {
    bottom: 0 !important;
    left: 30px !important;
    padding: 3px 3px 0;
    position: fixed !important;
    z-index: 9999;
}

 

 

this is the result after i set my custom css. as you see there is a top property at element.style and it makes my css styles bottom property useless. How can i clear that property?

 

Best regards

 

Posted

Hi,

 

I solve this problem with using this code at ExtEvents->afterrender;

 

function afterrender(sender, eOpts)
{
  Ext.get(sender.id).setStyle("top", "");
  Ext.get(sender.id).addCls("shortcuts");
}

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