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
The slider's handle overflows its parent by about 11 pixels and thus might get cut off when it's at the minimum or maximum position:
Additional information:
In Material this is aparently prevented by indenting the entire slider on both sides to leave enough room for the handle.
The slider shown in WinUI gallery prevents overflowing by not allowing the handle to move as far: The handle stops as soon as its outer ring touches the end of the slider bar:
The latter has the advantage of a cleaner layout: The slider bar uses the entire width that the Slider widget needs and thus aligns neatly with other form elements.
Expected behaviour:
The slider handle (knob) does not overflow its parent. And ideally reproduces the behaviour seen in WinUI gallery.
The text was updated successfully, but these errors were encountered:
We use material's Slider under the hood of Slider. We use a "hack" to remove the indentation on the slider sides (which is added by default on the material Slider), trying to mimic the native slider behavior.
The slider's handle overflows its parent by about 11 pixels and thus might get cut off when it's at the minimum or maximum position:
![slider_fluent_ui](https://private-user-images.githubusercontent.com/103884835/312777957-16f6cecd-751d-475f-a1cb-8d05047e68ed.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3NjA2NDIsIm5iZiI6MTcyMDc2MDM0MiwicGF0aCI6Ii8xMDM4ODQ4MzUvMzEyNzc3OTU3LTE2ZjZjZWNkLTc1MWQtNDc1Zi1hMWNiLThkMDUwNDdlNjhlZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMlQwNDU5MDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZmVmMmU3YjI1YzNkODcxZTc5NzVkMGM5OTNkNzAzMjBhMzg2NmEyNjZjOWNhZDIwNzExYjNkNDRlZDAwMzlhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9._UNdD2kxtuyjxAbSxsoRMefQOBMcL9g2kjFKjNAjz0Q)
![slider_cut_off](https://private-user-images.githubusercontent.com/103884835/312777982-7b343839-d27b-47ad-b7be-b506a2db7030.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3NjA2NDIsIm5iZiI6MTcyMDc2MDM0MiwicGF0aCI6Ii8xMDM4ODQ4MzUvMzEyNzc3OTgyLTdiMzQzODM5LWQyN2ItNDdhZC1iN2JlLWI1MDZhMmRiNzAzMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMlQwNDU5MDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01MGZkZDg2MWEyOThkZTBhMTg5YzM4YjhmOWQwNjM3YTEzOTdjYWY3NGZkYzAzOTRkNzNjY2QwOWY3MTc1YjkwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Xl4VpgFBmqQ7ZmWVX25KRzTSw5ELnuHD7PwIHiZER9o)
Additional information:
![slider_material](https://private-user-images.githubusercontent.com/103884835/312778128-bf79d7fd-c60a-46da-89dd-de23c4df44d1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3NjA2NDIsIm5iZiI6MTcyMDc2MDM0MiwicGF0aCI6Ii8xMDM4ODQ4MzUvMzEyNzc4MTI4LWJmNzlkN2ZkLWM2MGEtNDZkYS04OWRkLWRlMjNjNGRmNDRkMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMlQwNDU5MDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wYTM3NGJlNjMyOTdlZjg3OTkxNDk3YjAzZmJhMDZlODY2NzUwNWZhYmM3MWVhMjRiZDhkOTBhNDcxYWIxMjU1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.-hFGTPfELAAlMTwgWSLBX86EF6JYxssvpB-JO1F1wB4)
In Material this is aparently prevented by indenting the entire slider on both sides to leave enough room for the handle.
The slider shown in WinUI gallery prevents overflowing by not allowing the handle to move as far: The handle stops as soon as its outer ring touches the end of the slider bar:
![slider_winUI](https://private-user-images.githubusercontent.com/103884835/312775226-ec7a1d4f-d957-499f-bd77-5a1a1a9cbacc.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3NjA2NDIsIm5iZiI6MTcyMDc2MDM0MiwicGF0aCI6Ii8xMDM4ODQ4MzUvMzEyNzc1MjI2LWVjN2ExZDRmLWQ5NTctNDk5Zi1iZDc3LTVhMWExYTljYmFjYy5naWY_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMlQwNDU5MDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNjQ0Y2UxNTQ2ZDdjMzYzMDRiYmU5OWE1NmFlYzVmZDhiNGE0NTFiNmEwY2M3ZGVlM2U0MWQzNTVlMDMzZWQ4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.9X6tqVBl1D18oDmu-TBXn1CiQedL4u7D6G_EiKpbnI4)
The latter has the advantage of a cleaner layout: The slider bar uses the entire width that the
Slider
widget needs and thus aligns neatly with other form elements.Expected behaviour:
The slider handle (knob) does not overflow its parent. And ideally reproduces the behaviour seen in WinUI gallery.
The text was updated successfully, but these errors were encountered: