Skip to content

Latest commit

 

History

History
53 lines (27 loc) · 2.24 KB

App_or_Control_Looks_Odd_ae1e152.md

File metadata and controls

53 lines (27 loc) · 2.24 KB
loio
ae1e1520cf714cd99d966bacf5d6e6b2

App or Control Looks Odd

You find yourself in a situation that your app or a control looks different than you expected.


This can happen for one of the following reasons:

  • An HTML file is missing the DOCTYPE specification (this leads, for example, to exceptionally high table headers)

  • Custom styles aren't working properly

  • The theme you are using does not support the used libraries


To solve the issue, you have the following options:

  • Check whether the <!DOCTYPE html> tag is placed at the beginning of each HTML file, before the <html> tag.

  • Check if you have used a custom CSS in your app.

    If you have used a custom CSS, it is probably interfering with the styling in the standard OpenUI5 theming libraries.

    Use the developer tools of your browser to inspect the element that has the wrong styling. In the HTML tab, you can usually see which styles are applied to a DOM element. If you have styles in the list that are added by your app, disable these styles in the debugger to see whether this solves the problem.

    Note:

    OpenUI5-specific CSS classes and IDs all have an sapUi prefix, for example, sapUiButton.

    If this does not solve the issue, check for inline styles that are applied to the element in the HTML code. You can also try to isolate the control from the app to see whether there is an issue with the control instead of a collision of styles.

  • Check whether the theme you that you are using is supported in combination with the libraries that you are using in your app. For more information, see Supported Combinations of Themes and Libraries and Deprecated Themes and Libraries.