This is a migrated thread and some comments may be shown as answers.

header vertical alignment issues on iOS

5 Answers 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 24 Nov 2014, 04:55 PM
I'm trying to use the header of a shared layout for navigation; the view title for the current view, and left and right side links for other views at the same level of the navigation hierarchy.  This works functionally, but the vertical alignment is wrong; the view title is noticeably higher than the left and right links (see attachment).

Here is my layout:

  <!-- Motors Home section -->
  <div data-role="layout" data-id="motors-home-layout">
    <header data-role="header">
      <div data-role="navbar">
          <a data-align="left" data-role="button" class="nav-button" href="#settings-units">Settings</a>
          <span data-role="view-title"></span>
          <a data-align="right" data-role="button" class="nav-button" href="#rockets-home">Rockets</a>
      </div>
    </header>
    <footer data-role="footer">
      <div data-role="tabstrip">
        <a data-role="button" data-icon="favorites" href="#motors-favorites">Favorites</a>
        <a data-role="button" data-icon="recents" href="#motors-recents">Recent</a>
        <a data-role="button" data-icon="search" href="#motors-search">Search</a>
      </div>
    </footer>
  </div>








5 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 27 Nov 2014, 02:21 PM
Hello John,

It looks like the ticket is regarding the Kendo UI mobile components, so I am moving it to the correct forum. Your remark is correct, and I have logged it in our github repo - we will address it as soon as possible.


Regards,
Petyo
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
John
Top achievements
Rank 1
answered on 03 Mar 2015, 04:23 PM
The ticket is marked as fixed, but is not in fact fixed.  I just downloaded 2014.3.1411 and the problem still occurs.  Note that it is fixed in Chrome, but not in the iOS simulator.

If it's a simple style change, can you please give me the CSS change so that I can add it explicitly?
0
John
Top achievements
Rank 1
answered on 03 Mar 2015, 04:37 PM
I took a look into the commit, and it appears that you need 2px of adjustment to make this work properly in the iOS simulator. Note that makes the header misaligned low in Chrome, so that's probably not a reliable way to test mobile styling.

.km-ios7 .km-view-title {
  margin-top: 2px;
  margin-bottom: -2px;
}

0
Iliana Dyankova
Telerik team
answered on 06 Mar 2015, 12:52 PM
Hi John,

I will make some additional tests and will write you back in the following days. Please accept my apologies for the inconvenience caused.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Iliana Dyankova
Telerik team
answered on 13 Mar 2015, 05:14 PM
Hi John,

We have managed to address the issue - a fix will be available in Kendo UI Q1 2015 official release (which is expected next week).

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Petyo
Telerik team
John
Top achievements
Rank 1
Iliana Dyankova
Telerik team
Share this question
or