Jump to content

UniURLFrame - Get Rid of Surrounding Borders


Kattes

Recommended Posts

UniURLFrame is a very popular UniGui component when it comes to integrating HTML code directly into a project with as few side effects as possible. Unfortunately, this component is always displayed with a surrounded border in the browser.

Is there a simple way to switch off these borders?

borders.png

Link to comment
Share on other sites

  • 2 weeks later...

Try the following setting in the forms ClientEvents -> ExtEvents :

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

  • Upvote 1
Link to comment
Share on other sites

  • 2 weeks later...

Sorry for the late response, but my boss kept me overloaded with thousands of other things...

@Norm - Yes, that goes in the right direction but does not solve the problem 100%, because it would create 2 big lines (one right and on the bottom) in the browser window.

The solution is so simple that I am almost embarrassed to write this here. Simply setting MainFormDisplayMode = mfPage in the ServerModul.dfm let the borders go away, which is finally very logical :blink:

 

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