Fixes #3457 - Ticket Zoom is not working correctly with iPhone
This commit is contained in:
parent
3599319ea6
commit
53ceb9de9d
3 changed files with 3 additions and 3 deletions
|
@ -192,7 +192,7 @@ class App.FirstStepsClues extends App.Controller
|
||||||
maxHeight = $(window).height()
|
maxHeight = $(window).height()
|
||||||
|
|
||||||
# try to place it parallel to the larger side
|
# try to place it parallel to the larger side
|
||||||
if target.height > target.width && window.matchMedia('(min-width: 768px').matches
|
if target.height > target.width && window.matchMedia('(min-width: 768px)').matches
|
||||||
# try to place it aside
|
# try to place it aside
|
||||||
# prefer right
|
# prefer right
|
||||||
if target.right + modal.width <= maxWidth
|
if target.right + modal.width <= maxWidth
|
||||||
|
|
|
@ -173,7 +173,7 @@ class App.TicketCreate extends App.Controller
|
||||||
@controllerBind('ticket_create_rerender', (template) => @renderQueue(template))
|
@controllerBind('ticket_create_rerender', (template) => @renderQueue(template))
|
||||||
|
|
||||||
# initially hide sidebar on mobile
|
# initially hide sidebar on mobile
|
||||||
if window.matchMedia('(max-width: 767px').matches
|
if window.matchMedia('(max-width: 767px)').matches
|
||||||
@sidebar.addClass('is-closed')
|
@sidebar.addClass('is-closed')
|
||||||
@sidebarSpacer.addClass('is-closed')
|
@sidebarSpacer.addClass('is-closed')
|
||||||
|
|
||||||
|
|
|
@ -249,7 +249,7 @@ class App.TicketZoom extends App.Controller
|
||||||
App.OnlineNotification.seen('Ticket', @ticket_id)
|
App.OnlineNotification.seen('Ticket', @ticket_id)
|
||||||
|
|
||||||
# initially hide on mobile
|
# initially hide on mobile
|
||||||
if window.matchMedia('(max-width: 767px').matches
|
if window.matchMedia('(max-width: 767px)').matches
|
||||||
@el.find('.tabsSidebar').addClass('is-closed')
|
@el.find('.tabsSidebar').addClass('is-closed')
|
||||||
@el.find('.tabsSidebar-sidebarSpacer').addClass('is-closed')
|
@el.find('.tabsSidebar-sidebarSpacer').addClass('is-closed')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue