mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
removed logs
This commit is contained in:
@ -51,14 +51,11 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void updateCanvasSize() {
|
void updateCanvasSize() {
|
||||||
print("test");
|
|
||||||
double maxX = 0;
|
double maxX = 0;
|
||||||
double maxY = 0;
|
double maxY = 0;
|
||||||
|
|
||||||
// Calculate the maximum X and Y positions of all spaces
|
// Calculate the maximum X and Y positions of all spaces
|
||||||
for (var space in spaces) {
|
for (var space in spaces) {
|
||||||
print(
|
|
||||||
"Space Position: ${space.position.dx}, ${space.position.dy}"); // Log the position of each space
|
|
||||||
maxX = max(maxX, space.position.dx + 150); // Add width of space
|
maxX = max(maxX, space.position.dx + 150); // Add width of space
|
||||||
maxY = max(maxY, space.position.dy + 60); // Add height of space
|
maxY = max(maxY, space.position.dy + 60); // Add height of space
|
||||||
}
|
}
|
||||||
@ -73,10 +70,6 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
|
|||||||
canvasWidth = newWidth;
|
canvasWidth = newWidth;
|
||||||
canvasHeight = newHeight;
|
canvasHeight = newHeight;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Log the updated canvas size for debugging
|
|
||||||
print("Max X: $maxX, Max Y: $maxY");
|
|
||||||
print("Updated canvas size: $canvasWidth x $canvasHeight");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
Reference in New Issue
Block a user