Jump to content


Photo

rotating backdrops in Mobile view?


  • Please log in to reply
5 replies to this topic

#1 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 3952 posts
  • Local time: 10:25 AM
  • LocationPeterborough, Canada

Posted 16 September 2019 - 09:32 PM

Hi,
Does anyone know if it is possible to get rotating backdrops in Mobile view of the web app?

Or is this on purpose to keep requests to a minimum because of data limits on phones?

Perhaps there is an edit in the backdrop.js that could enable this feature?

#2 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 15726 posts
  • Local time: 07:25 AM
  • LocationWashington State

Posted 16 September 2019 - 09:58 PM

What do you mean?  My backdrops rotate on Home Screen and per library when the display option is enabled on the mobile device I test on, and in the dev console on my desktop when changing to mobile layout.



#3 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 3952 posts
  • Local time: 10:25 AM
  • LocationPeterborough, Canada

Posted 16 September 2019 - 09:59 PM

Okay, there is an option to enable this, great!

Could you tell me where the display option is located? I must have it turned off.

Here is an example of my details screen on mobile. Only one backdrop ever shows.

Attached File  Screenshot_20190916-220249.png   720.74KB   0 downloads

Edited by chef, 16 September 2019 - 10:04 PM.


#4 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 15726 posts
  • Local time: 07:25 AM
  • LocationWashington State

Posted 16 September 2019 - 10:34 PM

So you are referring to item backdrop as the setting I was referring to displays backdrops everywhere (Home Screen/Libraries).  This option does apply to items so this would appear to be by design somewhere in the mobile layout.

 

But the setting I referenced is User preferences (user icon)-Display.

 

itembackdrop is disabled in desktop layout and uses backdropcontainer to rotate images, where mobile layout enables itembackdrop and disables backdropcontainer.


Edited by Happy2Play, 16 September 2019 - 10:52 PM.

  • chef likes this

#5 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 3952 posts
  • Local time: 10:25 AM
  • LocationPeterborough, Canada

Posted 16 September 2019 - 11:23 PM

So you are referring to item backdrop as the setting I was referring to displays backdrops everywhere (Home Screen/Libraries). This option does apply to items so this would appear to be by design somewhere in the mobile layout.

But the setting I referenced is User preferences (user icon)-Display.

itembackdrop is disabled in desktop layout and uses backdropcontainer to rotate images, where mobile layout enables itembackdrop and disables backdropcontainer.


Ah ha, I see now, and found it. I think with a little bit of logic and some css I can get this going.

Thanks for the info.

#6 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 3952 posts
  • Local time: 10:25 AM
  • LocationPeterborough, Canada

Posted 16 September 2019 - 11:32 PM

Say @Happy2Play have you ever noticed in the web app JavaScript that there are many instances where 'getItemHtml' is called on an element.

For instance, code like this throws me for a loop (because how do you call a function like this on an element..??):

var cardContainer = querySelector('.cardContainer');

cardContainer.getItemHtml();

That is just an example.

Also the 'fetchData' function is also being called on an element after it is selected through querySelector.

This leads me to believe that these functions are prototype functions built somewhere in one of the files.

What I'm really interested in is where they are being created (so much code...🥺).

Especially the 'getItemHtml' prototype function.

Edited by chef, 16 September 2019 - 11:32 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users