elw00d/consoleframework

Grid with Margin="1" causes InvalidOperationException

elw00d opened this issue · 1 comments

This assert fires:

Size desiredSize = MeasureOverride(frameworkAvailableSize);
if (desiredSize.Width == int.MaxValue || desiredSize.Height == int.MaxValue) {
    throw new InvalidOperationException("MeasureOverride should not return int.MaxValue even for" +
                                        "availableSize = {int.MaxValue, int.MaxValue} argument.");
}

need to fix measuring in Grid

Wrong commit, reverted