mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
remoived debug print
This commit is contained in:
@ -56,6 +56,7 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
|
||||
maxX = max(maxX, space.position.dx + 150); // Width of space
|
||||
maxY = max(maxY, space.position.dy + 60); // Height of space
|
||||
}
|
||||
print("Max X: $maxX, Max Y: $maxY");
|
||||
|
||||
setState(() {
|
||||
canvasWidth = max(canvasWidth, maxX + 200); // Ensure padding
|
||||
@ -210,7 +211,6 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
|
||||
setState(() {
|
||||
spaces[index].position += delta;
|
||||
});
|
||||
updateCanvasSize();
|
||||
},
|
||||
onHoverChanged:
|
||||
(int index, bool isHovered) {
|
||||
@ -255,6 +255,8 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
|
||||
builder: (BuildContext context) {
|
||||
return CreateSpaceDialog(
|
||||
onCreateSpace: (String name, String icon) {
|
||||
updateCanvasSize();
|
||||
|
||||
setState(() {
|
||||
// Set the first space in the center or use passed position
|
||||
Offset centerPosition = position ??
|
||||
|
Reference in New Issue
Block a user