Laker-Compendium icon indicating copy to clipboard operation
Laker-Compendium copied to clipboard

Orientation on specific pages

Open mateoj opened this issue 13 years ago • 8 comments

Hi, Have searched past issues so apologies if I missed this.

Is there way to enable changes of orientation bit only on certain pages. e.g. I want pages 1-5 to be portrait only and no change when the iPad is rotated but then for page 6 I want use a different background depending on orientation.

I know how to do one way or the other by specifying "orientation" in book.json, just want to know if it's possible to mix this up and specify it on a page level rather than globally.

Thanks.

mateoj avatar Apr 11 '12 19:04 mateoj

You could disable it via CSS... Then there should be ne layout adaption.

ffranke avatar Apr 11 '12 20:04 ffranke

Hi frranke, Thanks for the quick response. Using the example that you supplu with Laker how would I disable that in the CSS? Sorry for the basic question but any help appreciated. Will close the issue then. Thanks.

mateoj avatar Apr 11 '12 20:04 mateoj

Pffuuuuh, that's not that easy, because the styles are separated in a few css's. It depends what you want to disable. Take a look at the modules and at the parts where the @media queries kick in. These are responsible for the layout-adaptions.

cheers

ffranke avatar Apr 11 '12 20:04 ffranke

Really? Argh, will see what I can do. Not sure if I explained clearly but basically I just want to disable rotation on certain pages. Thanks again!

mateoj avatar Apr 11 '12 20:04 mateoj

yeah, I understood that ;) The rotation of the content is controlled by the CSS (@mediaqueries) ;)

ffranke avatar Apr 11 '12 20:04 ffranke

Cool, just checking in case I hadn't explained well.

Ok, I'm looking now and if I find the way will let people know.

Thanks for the quick responses, much appreciated.

mateoj avatar Apr 11 '12 20:04 mateoj

Still not managed to get this working so if anyone has any ideas would be very gratefully received! Thanks

mateoj avatar May 19 '12 19:05 mateoj

Hello,

I'm having the same problem. I can't seem to achieve any orientation but portrait. Is this an iOS 6 issue?

Wolfred avatar Oct 10 '12 09:10 Wolfred