You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I freeze the first column it is not visually frozen but the menu bar says it is when clicked. State manager says it's not frozen. No frozen columns are bigger than 200. I don't understand why it doesn't work.
First column looks like this:
List<PlutoColumn> get columns {
return <PlutoColumn>[
PlutoColumn(
title: 'Date',
field: 'date',
type: PlutoColumnType.date(format: "dd MMM"),
readOnly: true,
backgroundColor: Colors.black,
enableColumnDrag: false,
enableRowDrag: false,
enableSorting: false,
frozen: PlutoColumnFrozen.start, // this should freeze it and should be enough
titleSpan: getTitleSpan('Date'),
),
onLoaded looks like this:
onLoaded: (PlutoGridOnLoadedEvent event) {
event.stateManager.setShowColumnFilter(false);
event.stateManager.setColumnSizeConfig(
PlutoGridColumnSizeConfig(
autoSizeMode: PlutoAutoSizeMode.scale));
event.stateManager.columns[0].frozen = PlutoColumnFrozen.start; // tried to freeze it again just in case
print("***frozen " + event.stateManager.showFrozenColumn.toString()); // shows false
},
The text was updated successfully, but these errors were encountered:
I think it's calculating the width of all the starting frozen columns. I'm assuming you have more than one frozen column. To test you can unfreeze your other columns and only have your first column frozen.
@override
double get leftFrozenColumnsWidth {
double width = 0;
for (final column in refColumns) {
if (column.frozen.isStart) {
width += column.width;
}
}
return width;
}
When I freeze the first column it is not visually frozen but the menu bar says it is when clicked. State manager says it's not frozen. No frozen columns are bigger than 200. I don't understand why it doesn't work.
First column looks like this:
onLoaded looks like this:
The text was updated successfully, but these errors were encountered: