You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

obel

Beginner

  • "obel" started this thread

Posts: 18

Location: Denmark

Occupation: Engineering stuff ...

  • Send private message

1

Thursday, November 6th 2014, 5:32pm

Variable width next to fixed width

Quick question,

I have a container with width 100% and height say, 100 pixels. I want to place two new containers inside it. I want them side by side both 100 pixels high. The right one needs to have a fixed width and the left one needs to occupy the rest of the parent container. Is there a clever way to this without using the skin_onresize-action to manually calculate the width of the left container?

Kind regards,

Obel

Alexey Tkachenko

Professional

Posts: 760

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Thursday, November 6th 2014, 5:38pm

http://krpano.com/docu/xml/#layer.width

Check out documentation. It is possible to use negative values. E.g. Your right layer is 50px wide and left one is "-50" - that will be width of the parent container minus 50px.
Regards,

Alexey

obel

Beginner

  • "obel" started this thread

Posts: 18

Location: Denmark

Occupation: Engineering stuff ...

  • Send private message

3

Thursday, November 6th 2014, 5:40pm

Exactly what I was looking for. Thanks

Kind Regards,

Obel