crostini: Fix a race in setting the disk slider value.
The max value gets set automatically when we set the ticks on the slider, but if the observer on slider ticks changing fires after the observer on value changing, then the value gets clamped to the old max meaning even if the user has a larger disk, we'll start the slider off at tick 100. To fix this we explicitly set max, to ensure it's set to the right value when the clamping happens. Bug: chromium:1139722 Test: Manual Change-Id: Ic35d84ce17febdf83ae607e12e0288aa669d55aa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2497720Reviewed-by:David Munro <davidmunro@google.com> Reviewed-by:
calamity <calamity@chromium.org> Auto-Submit: David Munro <davidmunro@google.com> Commit-Queue: calamity <calamity@chromium.org> Cr-Commit-Position: refs/heads/master@{#821112}
Showing
Please register or sign in to comment