mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 06:27:48 +00:00
847144c630
Utilize mct-drag in the layout view to allow editing of frame position by drag. WTD-535.
24 lines
839 B
HTML
24 lines
839 B
HTML
<div style="width: 100%; height: 100%;"
|
|
ng-controller="LayoutController as controller">
|
|
|
|
<div class='frame child-frame panel abs'
|
|
ng-repeat="childObject in composition"
|
|
ng-style="controller.getFrameStyle(childObject.getId())">
|
|
|
|
<div class="frame child-frame holder contents abs">
|
|
<mct-representation key="'frame'"
|
|
mct-object="childObject">
|
|
</mct-representation>
|
|
</div>
|
|
|
|
<span>
|
|
<span style="position: absolute; left: 12px; right: 12px; top: 12px; bottom: 12px;"
|
|
mct-drag-down="controller.startDrag(childObject.getId(), [1,1], [0,0])"
|
|
mct-drag="controller.continueDrag(delta)"
|
|
mct-drag-up="controller.endDrag()">
|
|
</span>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div> |