Breaking Change T1062135
Visible to All Users

Text Editors, Form - Top margin for the outlined text editor with a floating/static label has been changed

What Changed

In v21.2.6 and newer, text editors with floating/static labels have a non-null top margin. The CSS styles below illustrate the text editor's top margin values in the Generic and Material themes:

CSS
.dx-editor-outlined.dx-texteditor-with-floating-label { .... margin-top: 7.5px }

Reasons for Change

Previously, a label of the outlined text editor might cover other page elements because the text editor did not have top margins when the floating/static label was used.

T1062135-Before.PNG

In v21.2.6, we have fixed this behavior in the T1044167 thread. Due to this change, text editors with floating/static labels now have a non-null top margin.

T1062135-After.PNG

Impact on Existing Apps

This change may affect your application if you rely on the previous position of text editors. This change affects text editors' position and increases paddings between rows in the Form component.

How to Revert to Previous Behavior

If you need to revert to the previous position of items in the Form component, decrease the default value of the editor's top padding. The example below demonstrates how to revert to the previous behavior in the Form in the Generic and Material themes.

CSS
.dx-layout-manager .dx-field-item:not(.dx-first-row) { padding-top: 2.5px; // default value is 10px }

You can test this behavior in this demo.

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.