AnsweredAssumed Answered

Dynamic resize of text in v14

Question asked by RickWells-Cole on Jul 27, 2015
Latest reply on Jul 27, 2015 by TomDupre

This little bit of script used to work fine in v13 to allow text to auto resize to fit a field. It does not work in v14, it just goes to the smallest size. Has anyone any idea what has changed and why it no longer works?

 

Let([

css = GetAsCSS ( Get ( ActiveFieldContents ) ) ;

pStart = Position ( css ; "font-size" ; 1 ; 1 )  + 10;

pEnd = Position ( css ; "px;" ; pStart ; 1 ) ;

size = Middle ( css ; pStart ; pEnd - pStart )

];

GetAsNumber ( If ( IsEmpty ( size ) ; 14 ; size ) )

)

Outcomes