Sie sind nicht angemeldet.

  • »sachagriffin« ist der Autor dieses Themas

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

1

Dienstag, 26. August 2014, 19:32

Textfield autosize discrepancies on firefox

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<action name="setdesc">
copy(plugin[popup_desc].html,data[htmldata2].content);
</action>


<scene name="scene0" ..
onstart="delayedcall(1,setdesc());"

<data name="htmldata2"><p><div><p align="center"><b>Room décor provided by Pottery Barn Teen</b></p><p><br/><b>Bedding:</b><br/>- Good Night Cheetah Duvet (Twin): 8543332<br/>- Good Night Cheetah Standard Sham: 8542961<br/>- Morning Glory Bouquet Sheet set, TWIN XL: 7953664<br/>- Chambray Ruched Duvet (Twin): 7481575<br/>- Chambray Ruched Standard Sham: 7484090<br/>- The Emily and Merritt Metallic Dottie Sheet set, TWIN XL: 1951508<br/>- Flora Felt Pillow, Taupe: 7570906<br/>- The Emily + Merritt Sequin Bow Pillow: 5245667<br/>- The Emily + Merritt Up and Away Pillow, Ivory/Gold: 9309683<br/>- The Emily + Merritt Liquid Gold Star Pillow, Gold: 9295411<br/>- Glam Needlepoint Pillow, 10x10, Love Heart: 8920530<br/>- The Emily and Merritt Liquid Gold Throw: 9296401<br/></p><p><b>Desk/Study: </b><br/>- Printed Desk Accessories, Set of 3: Magazine Caddy, Divided Tray, and Cup, Metallic Gold Geo: 365700<br/>- Wooden Desk Accessories, Revolving Utility, Simply White: 101519<br/>- Wooden Desk Accessories, Pencil Cup, Simply White: 97360<br/> - Wooden Desk Accessories, Magazine Caddy, Simply White: 96891<br/>- Shine On Task Lamp, Brushed Nickel: 2318681<br/>- Hi-Light Task Lamp + CFL Bulb, Brushed Nickel: 4402285<br/>- Sherpa Hang-A-Round Chair, Ivory: 3960192<br/><br/><b>Wall Décor: </b><br/>- Vintage Frame Dry-Erase Calendar Decal: 9163791<br/>- Vintage Picture Frame Decals, Black, Set of 9: 3970118<br/><br/><b>Storage: </b><br/>- Solid Canvas Bin, Mini, Set of Two, Black: 2610368<br/>- Solid Canvas Bin, Medium, Black: 2281384<br/>- Solid Canvas Bin, Grey (with white trim) Mini S/2: 4737862<br/>- Solid Canvas Bins, Medium, Grey with White Trim: 8196743<br/>- Duffle Hamper with Crossbody Strap, Grey Minidot: 8227498</p></div></p></data>


<scene name="scene1" ..
onstart="setdesc()"

<data name="htmldata2"><p><div><p>Communal bathrooms are located on each end of floors<br/>1-3 and one is on the 4th floor. <br/><br/>The bathrooms are cleaned daily by the Department of Housing Custodial Staff.</p></div></p></data>



Firefox reports the second scene plugin[popup_desc].height to be 85 not 95 as in chrome which is correct.

Workaround is clearing the textfield and then setting it with a delayed call. May have something to do with the breaklines.. I have no clue.

Quellcode

1
2
3
4
<action name="setdesc">
set(plugin[popup_desc].html,);
delayedcall(0.1,copy(plugin[popup_desc].html,data[htmldata2].content));
</action>
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Dienstag, 26. August 2014, 19:43

Do you have this behaviour also online?
My experience is that FF makes problems with textfield size offline.

Did you try using css settings also in data tag and not use div etc ?
or maybe use

Quellcode

1
[br] instead of </br>


(??)
I could be totaly wrong offcourse.

Tuur *thumbsup*

  • »sachagriffin« ist der Autor dieses Themas

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

3

Dienstag, 26. August 2014, 20:13

Nah, its online.
My workaround seems to be working. The actual code is much much more complex. So its possible there may be some other introduction of the bug. I don't have the time to distill down the project at the moment. Just seems weird that it's almost right but off by 10px
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

4

Dienstag, 26. August 2014, 21:36

Hi,

Flash or HTML5?
All up-to-date?

Btw - just as note - all browsers are rendering the text differently, so size/space differences can be normal...

Best regards,
Klaus

  • »sachagriffin« ist der Autor dieses Themas

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

5

Mittwoch, 27. August 2014, 03:48

Flash. Its weird that it cuts off short in FF however unless i use the workaround. Then they both match in height, chrome and ff.
I guess I'll generate a bug example if i can find the time.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour