cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Font Size When Using BloX

gwolfe
10 - ETL
10 - ETL

I am running into a problem with BloX when transitioning from a large monitor to a laptop where text gets cut off. Is there a way I can make font size dynamic? 

This looks fine on a monitor..

gwolfe_0-1650320857545.png

But when I move to a laptop...

gwolfe_1-1650320932136.png

Thanks,

 

1 ACCEPTED SOLUTION

ChrisS
Sisense Team Member
Sisense Team Member

Hi gwolfe,

It's simple to make the number in your Blox KPI widget responsive.  Don't use the "size" attribute in the TextBlock.  Instead, add a "style" attribute, and underneath, define the font-size as an integer percent of the Viewpoint Width, "vw".  The entry looks like this: "font-size": "4vw".  See the example below.

ChrisS_1-1650405673276.png

 

Regards,

Chris

View solution in original post

2 REPLIES 2

ChrisS
Sisense Team Member
Sisense Team Member

Hi gwolfe,

It's simple to make the number in your Blox KPI widget responsive.  Don't use the "size" attribute in the TextBlock.  Instead, add a "style" attribute, and underneath, define the font-size as an integer percent of the Viewpoint Width, "vw".  The entry looks like this: "font-size": "4vw".  See the example below.

ChrisS_1-1650405673276.png

 

Regards,

Chris

gwolfe
10 - ETL
10 - ETL

Awesome! Thank you so much