Open ysl0628 opened 8 months ago
Make sure the grid is also configured to allow resizing
Make sure the grid is also configured to allow resizing
@torkelo I have set isResizable: true in both SceneGridLayout and SceneGridItem, but I'm still facing the same issue. Any advice?
It works for me @ysl0628 this is the code i used :
return new EmbeddedScene({
$timeRange: timeRange,
$variables: new SceneVariableSet({
variables: [AppNameDrilldownVariable]
}),
body: new SceneGridLayout({
isResizable: true,
isDraggable: true,
children: [
new SceneGridItem({
x: 0,
y: 0,
width: 100,
height: 8,
isResizable: true,
isDraggable: true,
$data: query(......),
body: stateTimelinePanel("Total Time Taken", "ms", thresholds["request_duration_warning"], thresholds["request_duration_critical"]),
}),
new SceneGridItem({
x: 0,
y: 20,
width: 100,
height: 8,
isResizable: true,
isDraggable: true,
$data: query(....),
body: stateTimelinePanel("Errors", "", thresholds["error_count_warning"], thresholds["error_count_critical"]),
})
],
}),
controls: [
new VariableValueSelectors({}),
new SceneControlsSpacer(),
new SceneTimePicker({ isOnCanvas: true }),
new SceneRefreshPicker({
intervals: ['1s', '5s', '30s', '1m', '30m', '1h'],
isOnCanvas: true,
}),
],
});
I set isResizable to true in SceneGridItem , but the panel’s resize handler doesn’t show up, and resizing doesn’t work.
Is there something wrong with the method I set up?