Jump to content


Photo

Form. To remove the border.


  • Please log in to reply
4 replies to this topic

#1 Volk65

Volk65

    Member

  • uniGUI Subscriber
  • PipPip
  • 20 posts

Posted 07 December 2017 - 06:08 PM

Hi. I need to remove the border from the form.

I read the forum and found:

function window.afterrender(sender, eOpts)
{
  Ext.get(sender.id).el.setStyle("padding", 0);
  Ext.get(sender.id).el.setStyle("border-width", 1);
  Ext.get(sender.id).el.setStyle("-webkit-border-radius", 0);
  Ext.get(sender.id).el.setStyle("-moz-border-radius", 0);
  Ext.get(sender.id).el.setStyle("border-radius", 0);
}

It works, but the top of the form there is panel: Align:=alTop. And I have the effect - the panel is not realigned. See the attachment

how to fix it?

Attached Files


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3625 posts

Posted 07 December 2017 - 06:20 PM

Hi,

 

Please specify, which build are you using?

 

And make a simple testcase if possible.

 

Best regards,


  • 0

#3 Volk65

Volk65

    Member

  • uniGUI Subscriber
  • PipPip
  • 20 posts

Posted 07 December 2017 - 06:26 PM

No problem. 1.0.0.1421

 

test attached...

Attached Files


  • 0

#4 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3625 posts

Posted 07 December 2017 - 06:39 PM

Thanks for the testcase,

 

One possible solution:

 

UniPanel1 -> ClientEvents -> UniEvents -> function beforeInit:

function beforeInit(sender, config)
{
    config.width='auto';
}

  • 0

#5 Volk65

Volk65

    Member

  • uniGUI Subscriber
  • PipPip
  • 20 posts

Posted 07 December 2017 - 06:43 PM

Super! What we need.


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users