Fixing a Truncated Header or Footer…

jQuery Mobile will truncate headers and footers with long titles (see Figure 3–6). When the text is too long jQuery Mobile will truncate the text and add an ellipsis to the end. If you encounter this situation and want to show the complete text (see Figure 3–7) you can adjust the CSS selector to remedy the issue as shown in Listing 3–5.

Listing 3–5. Truncation Fix (ch3/truncation-fixed.html).ui-header .ui-title, .ui-footer .ui-title {
  margin-right: 0 !important; margin-left: 0 !important;
}
images

Figure 3–6. Truncation Issue

images

Figure 3–7. Truncation FixCopycopyHighlighthighlightAdd NotenoteGet Linklink


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *