[Layout] Enforce minimum size on drop
Addresses nasa/openmctweb#271, ensuring frames in a layout are not too tiny to use, even if the grid size is small.
This commit is contained in:
@@ -113,7 +113,7 @@ define(
|
||||
Math.floor(position.x / self.gridSize[0]),
|
||||
Math.floor(position.y / self.gridSize[1])
|
||||
],
|
||||
dimensions: DEFAULT_DIMENSIONS
|
||||
dimensions: self.defaultDimensions()
|
||||
};
|
||||
// Mark change as persistable
|
||||
if ($scope.commit) {
|
||||
|
||||
Reference in New Issue
Block a user