You are not logged in.

  • "sachagriffin" started this thread

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

1

Wednesday, July 22nd 2015, 6:02am

calc replaces txtadd ... almost

leading zeros on variables are being stripped, and can not be used for textfield css... *confused*

Is there an escape method? calc is so nice, I'd like to use it exclusively over remembering a dozen other functions.

Source code

1
css="calc: 'font-weight:bold;font-family:Arial;font-style:italic;font-size:18px;text-align:left;color:#'+scene[get(xml.scene)].text_color+';'" 


I'm not sure how to bypass this impasse correctly without preg_replacing all my leading zeros with 11's which looks pretty good! but requires php or foreknowledge of this stripping situation.

**EDIT** I decided it was DUMB trying to do all these calc shenanigans just to prevent the creation of one more variable for background colors and textfield css.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

This post has been edited 2 times, last edit by "sachagriffin" (Jul 23rd 2015, 2:21am)