mirror of
https://github.com/nasa/openmct.git
synced 2024-12-30 09:58:52 +00:00
082b555644
Persist element positions after drag in fixed position view, WTD-615.
36 lines
1.4 KiB
HTML
36 lines
1.4 KiB
HTML
|
|
|
|
<div style="width: 100%; height: 100%; position: absolute; left: 0px; top: 0px;"
|
|
ng-controller="FixedController as controller"
|
|
mct-resize="controller.setBounds(bounds)">
|
|
|
|
<!-- Background grid -->
|
|
<div ng-repeat="cell in controller.getCellStyles()"
|
|
style="position: absolute; border: 1px gray solid; background: black;"
|
|
ng-style="cell">
|
|
</div>
|
|
|
|
<!-- Telemetry elements -->
|
|
<div ng-repeat="childObject in composition"
|
|
style="position: absolute; background: #444;"
|
|
ng-style="controller.getStyle(childObject.getId())">
|
|
|
|
<div style="position: absolute; left: 0px; top: 0px; bottom: 0px; width: 50%; overflow: hidden;">
|
|
{{childObject.getModel().name}}
|
|
</div>
|
|
<div style="position: absolute; right: 0px; top: 0px; bottom: 0px; width: 50%; overflow: hidden;">
|
|
{{controller.getValue(childObject.getId())}}
|
|
</div>
|
|
|
|
<!-- Drag handles -->
|
|
<span ng-show="domainObject.hasCapability('editor')">
|
|
<span style="position: absolute; left: 0px; right: 0px; top: 0px; bottom: 0px; cursor: move;"
|
|
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> |