cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Height Control for Data Picker widget in Thingworx 9.0

mervinnobelraj
9-Granite

Height Control for Data Picker widget in Thingworx 9.0

Hi,
I need to control the height in the ptcs-datapicker widget in Thingworx 9.0.

This the custom css i have used for datepicker


.cus-date-pick ptcs-datepicker::part(date-field) {
min-height:25px !important;
}
.cus-date-pick ptcs-datepicker::part(text-box) {
height:25px !important;
}

 

 

In the the first three pic i have used the height properties for datepicker but it is not working,

and the fourth pic  was the only need for us

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Ciprian-Traian ,

In The  PTCS-DataPicker I have find the class name to give, it is Working for min-height: 25 px.

Here The CSS Code

 

.cus-date-pick ptcs-datepicker::part(date-field) {
height:25px !important;
min-height:25px !important;
}
.cus-date-pick ptcs-datepicker::part(date-field)::part(text-box){
min-height:25px !important;
}

View solution in original post

5 REPLIES 5

Hello @mervinnobelraj ,

 

The date time picker widget doesn't seem to have Date Field defined for height. If you look into the Style Properties of the date picker you see Date Field has only margin.

The same goes for text-box, it is only part of date field and has only border-color, border-style and border-width.

You can try to configure the settings from Style Properties.

 

Hope it helps,

Hi @Ciprian-Traian ,

 

I have configure in the style properties you can refer pic 1 and 2 

Hi @mervinnobelraj ,

 

The height doesn't change below 34px in the Properties panel, I have tried that several times.

This seems to be the min height. I was looking as well in Developer Tools and it does seem so.

 

image.png

Hi @Ciprian-Traian ,
You can configure the style properties for height - 25px and use the custom css given below ,

and i have highlighted in the image in that part="text-box" you can inspect it and write min-height:25px.

 

 ptcs-datepicker::part(date-field) {
min-height:25px !important;
}

 

image.png

Hi @Ciprian-Traian ,

In The  PTCS-DataPicker I have find the class name to give, it is Working for min-height: 25 px.

Here The CSS Code

 

.cus-date-pick ptcs-datepicker::part(date-field) {
height:25px !important;
min-height:25px !important;
}
.cus-date-pick ptcs-datepicker::part(date-field)::part(text-box){
min-height:25px !important;
}

Top Tags