CameraPopoutAppWrapper

CameraPopoutAppWrapper

Abstraction of the Application interface to be used with the Draggable class as a substitute for the app This class will represent one popout feed window and handle its positioning and draggability

Constructor

new CameraPopoutAppWrapper(view, userId, element)

Source:
Parameters:
Name Type Description
view CameraViews

The CameraViews application that this popout belongs to

userId String

ID of the user this popout belongs to

element jQuery

The div element of this specific popout window

Members

position

Source:

Get the current position of this popout window

Methods

displayToFront()

Source:

The z-index trick wouldn't work here because all popout divs are children of the #camera-views div itself, which has its own z-index. The z-index that gets respected is the one from camera-views, then the order of those popout windows are based on their position as children of the #camera-views. To float a window to the top, we need to add it to the end of the list of elements in the camera views

setPosition()

Source:

Set the position of the popout window. Note: scale is ignored here.