Combobox borderType property

Forum to discuss the new web client version of Servoy.

Combobox borderType property

Postby huber » Fri Oct 06, 2017 7:21 pm

I have a field with displayType COMBOBOX. Setting the borderType property to DEFAULT draws a line around the field seen on the left side of the image. Setting borderType to empty, the still remains a line on top and sides of the object (not so on the bottom), seen on the right side of the image.

How can I suppress this line completely or make it transparent? Looks like a bug to me for the setting borderType: empty. It's displayed the same on Chrome, Safari, and Firefox (as seen in the image).

Can I style this surrounding line in the css style file?

Servoy 8.1.4

Thanks for hints and regards,
You do not have the required permissions to view the files attached to this post.
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 255
Joined: Mon May 14, 2012 11:31 pm

Re: Combobox borderType property

Postby rvanveen » Tue Oct 10, 2017 9:57 am

Hi,

You can style this by setting the box-shadow property in a styleClass.
For example:

Code: Select all
.noShadowForCombo > div > span {
    box-shadow: none;
}


After that add the styleClass property "noShadowForCombo" on the combobox element.
User avatar
rvanveen
 
Posts: 7
Joined: Fri Jul 01, 2016 10:51 am

Re: Combobox borderType property

Postby huber » Thu Oct 12, 2017 11:24 am

Hi Rene

That is what I was looking for - thanks very much!
I used for the default field style box-shadow: unset; but did not realise that for the combobox it additionally needs > div > span. By the way, is there a Servoy relevant difference between unset and none?

rvanveen wrote:Hi,

You can style this by setting the box-shadow property in a styleClass.
For example:

Code: Select all
.noShadowForCombo > div > span {
    box-shadow: none;
}


After that add the styleClass property "noShadowForCombo" on the combobox element.


Regards,
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 255
Joined: Mon May 14, 2012 11:31 pm

Re: Combobox borderType property

Postby rvanveen » Fri Oct 13, 2017 12:33 pm

There is no Servoy relevant difference between unset and none.
It is really css logic/styling what will apply to this.
User avatar
rvanveen
 
Posts: 7
Joined: Fri Jul 01, 2016 10:51 am

Re: Combobox borderType property

Postby huber » Fri Oct 13, 2017 1:58 pm

Thanks.

rvanveen wrote:There is no Servoy relevant difference between unset and none.
It is really css logic/styling what will apply to this.
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 255
Joined: Mon May 14, 2012 11:31 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 1 guest

cron