mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 14:07:50 +00:00
1015e97b3e
Add additional test cases for controller for Fixed Position view to meet code coverage after changes for WTD-879.
25 lines
1.1 KiB
HTML
25 lines
1.1 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 -->
|
|
<span ng-click="controller.clearSelection()">
|
|
<div ng-repeat="cell in controller.getCellStyles()"
|
|
style="position: absolute; border: 1px gray solid; background: black;"
|
|
ng-style="cell">
|
|
</div>
|
|
</span>
|
|
|
|
<!-- Fixed position elements -->
|
|
<mct-include ng-repeat="element in controller.getElements()"
|
|
style="position: absolute;"
|
|
key="element.template"
|
|
ng-class="{ test: controller.selected(element) }"
|
|
ng-style="element.style"
|
|
ng-click="controller.select(element)"
|
|
ng-model="element"
|
|
mct-drag-down="controller.startDrag(element); controller.select(element)"
|
|
mct-drag="controller.continueDrag(delta)"
|
|
mct-drag-up="controller.endDrag()">
|
|
</mct-include>
|
|
</div> |