Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount! Get 20% off now with code SPOOKY-2024!

Feature request for CB Gallery: Sizes in pc instead of px

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 2 days ago #287344 by timstohr
Hi Kyle,
One of the problems that I have with the gallery is the representation on different phones. The sizes can only be set as px (eg Album box size: 144 px). As the templates we are using are adaptable, it would be great if the box could be as well... ie it gives an output in percentage of full screen instead of pixels...

I think an addition of such a feature would make everyones life easier.

Bye

Tim

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 2 days ago - 8 years 2 days ago #287353 by krileon
It needs to calculate a square and set a line-height to the height of the container. This is how a lot of the positioning is able to work for the thumbnails. In short it's not possible without getting rid of the height calculations or making the height a static value. In which case I recommend just using CSS and overriding the display. Example as follows using CSS. The pixel size you set for the container will still be used for the height.

Code:
.cb_template .galleryContainer { width: 45%; } .cb_template .galleryContainer .galleryContainerInner { width: 100% !important; }


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 8 years 2 days ago by krileon.

Please Log in or Create an account to join the conversation.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
8 years 2 days ago #287357 by timstohr
Awesome, that was exactly what I needed. It is rather annoying to have the gallery pictures arrange itself superbly on one phone and not on another one (eg android vs iphone).

I would still suggest to have something like this included in the main gallery... (even if only as a tooltip...)

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
8 years 2 days ago #287364 by krileon
The problem is as I've already explained. Having a % width is fine and doable, but it doesn't work for the height calculations. Will review adding support for this by checking if a % width is used and if it is then display a height parameter as the height will have to always be static.

forge.joomlapolis.com/issues/6278


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum