mercredi 23 mars 2016

How to set size of a checkbox in table vaadin

I have column that contains default vaadin checkbox in my vaadin table. My table width is 100%, I have also column that contains embedded image so the height of row is 90 px.

Vaadin version is 7.6.3.

I want to set height and width of checkbox to about 60px.

How do i achieve that?

My java code:

CheckBox cboxone=new CheckBox();
cboxone.setConvertedValue(true);
cboxone.setHeight("60px");
cboxone.setWidth("60px");
cboxone.setStyleName("csmy");

I set height and width to 60px. I apply css style (style name is csmy) to checkbox. I try following css styles:

.csmy .v-checkbox > label{

        height:60px !important;
        width:60px !important;
 }

.csmy .v-checkbox{

        height:60px !important;
        width:60px !important;
 }

.csmy{
   height:60px !important;
   width:60px !important;
}

.csmy .v-checkbox > input{

        height:60px !important;
        width:60px !important;
 }

But still nothing happen. Checkbox is still the same size as before.




Aucun commentaire:

Enregistrer un commentaire