**Description:** Abnormal height in horizontal screen mode. `AndroidManifest.xml`:`android:configChanges="orientation|screenSize|screenLayout"` **Expected behavior:** _In vertical screen mode_ <img width="339" alt="Image" src="https://github.com/user-attachments/assets/7fc1ecca-fe09-492a-ac1e-b9eaa74b6551" /> _In horizontal screen mode_ <img width="732" alt="Image" src="https://github.com/user-attachments/assets/e3f2904a-93bf-46c0-a454-10b4bef892ec" /> **When using `AlertDialog`** _In vertical screen mode_ <img width="345" alt="Image" src="https://github.com/user-attachments/assets/56b734fd-7288-46a4-a71e-66ce8b8085d9" /> _In horizontal screen mode_ <img width="634" alt="Image" src="https://github.com/user-attachments/assets/505b9cd2-900b-4199-9f40-d336777203b8" /> **Source code:** <img width="860" alt="Image" src="https://github.com/user-attachments/assets/57cf79d4-1d1b-4853-b0af-0348d0d294bf" /> **Minimal sample app repro:** [TestDialog.zip](https://github.com/user-attachments/files/19604306/TestDialog.zip) **Android API version:** 35 **Material Library version:** 1.12.0 **Device:** all devices