Jump to content

Recommended Posts

Posted

Having

  TUniFrame created dynamically  (TProductFrame)

  TUniPanel on TUniFrame 

 

trying to set border-radius - to both through CSS but no effect? Maybe other variant throught ExtJS?

 

I need  border-radius 5 px or box-shadow - tried both - no effect

 

with border-radius was acting like this

 

On ServerSide

.border-radius{
   border-radius: 10px
}

On Client Side

function beforerender(sender, eOpts)
{
  sender.addCls('border-radius');
}



Posted

CustomCSS:

.x-panel-shadow {
	box-shadow: 0 0px 10px 0 rgba(0,0,0,0.2);
	border-color: #D9D9D9 !important;
}
.x-panel-shadow-round {
	border-radius: 10px;
}

 

UniEvents: Beforeinit:

function beforeInit(sender, config)
{
   config.cls="x-panel-shadow x-panel-shadow-round";
}

BorderStyle = ubsNone for the panel.

 

Result attached.

 

 

post-4617-0-54181700-1491323057_thumb.png

Posted

You can also do it like this.

 

CustomCSS:

.x-panel-round {
	padding: 3px;
	border-width: 3px !important;
	border-radius: 10px;
}

BorderStyle = ubsSolid for the panel.

 

UniEvents: beforeinit

function beforeInit(sender, config)
{
  config.cls="x-panel-round";
}

post-4617-0-84102900-1491326728_thumb.png

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