split view: Change initial value of divider_closest_ratio_ from 0 to NaN
Before the present CL, SplitViewController::OnDisplayMetricsChanged checks divider_closest_ratio_ against its initial value zero, which is actually a "legitimate" value (it represents the divider position at the extreme left or top). The present CL changes that initial value to NaN. Test: ash_unittests SplitViewControllerTest.InternalDisplayConfigurationChangeDuringDividerSnapToLeft Bug: 1006859 Change-Id: I1a89ea4b75d599251d77297449fd1d3a253eca26 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1815916Reviewed-by:Xiaoqian Dai <xdai@chromium.org> Commit-Queue: Avery Musbach <amusbach@chromium.org> Cr-Commit-Position: refs/heads/master@{#699546}
Showing
Please register or sign in to comment