This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Pages: 1 - Last Post: 15-Aug-2018 20:36 Last Post By: AndreWolff Threads: [ Previous | Next ]
wspollack

Posts: 17
Registered: 10-Mar-2004
FancyBox: Use More Viewport Space on Phone?
Posted: 04-Aug-2018 00:21
 
  Click to reply to this thread Reply
Attachment FB-Proposed.PNG (1.2 MB)
Attachment FB-Current.PNG (1.1 MB)
André:

Here is a suggestion for FancyBox, if it is possible ...

Attached are a couple of screenshots on Safari, on an iPhone6, of a FancyBox gallery.

The first shows the actual slide, i.e., as it appears. The image is centered in the available viewport space, so that it doesn't overlap the menu icons at the top. An area equivalent to that top menu-icon space is unused at the bottom, below the image.

The second screenshot shows my suggestion. It is a pinch-zoom of the image, and then lowered slightly. That is, the image itself is no longer centered, because there is no longer an unused area at the bottom of the viewport. This allows the image itself to be larger, while still maintaining its aspect ratio.

This change is similar to what already happens in a desktop browser with a FancyBox gallery. That is, if the thumbnails are shown along the bottom of a desktop viewport, the image is a certain size (and not centered, top to bottom). Once the bottom thumbnails are closed (by clicking on the corresponding menu icon), the image is expanded, because there is more room available for it.

Of course, I may be missing something here, there may be some reason why this is not feasible on a phone, that sort of thing.

Regards,

Bill P.
AndreWolff

Posts: 1,948
Registered: 14-Dec-2007
Re: FancyBox: Use More Viewport Space on Phone?
Posted: 04-Aug-2018 15:48   in response to: wspollack in response to: wspollack
 
  Click to reply to this thread Reply
Good idea Bill. But the problem is I use here the code of the fancyBox library, which is not developed by me.

So I did a change request as you can see here.

I can only implemented this after the developer of the fancyBox has implemented this.

Regards,

André
AndreWolff

Posts: 1,948
Registered: 14-Dec-2007
Re: FancyBox: Use More Viewport Space on Phone?
Posted: 15-Aug-2018 13:49   in response to: wspollack in response to: wspollack
 
  Click to reply to this thread Reply
This has now been implemented in version 1.2.4:

Set new check-box 'Use whole screen for slide image if screen height <' on the Slide page / Layout tab.
If you enter a value for the minimum screen height after that check-mark, it is only applied for small devices with a screen height below the given value. So I see it only on my iPhone if I enter a minimum screen height of 400 px.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums