centralize the map

3 posts, 1 answers
  1. Peter Beyer
    Peter Beyer avatar
    27 posts
    Member since:
    Aug 2014

    Posted 03 Sep 2015 Link to this post

    Dear Telerik,

    We have implemented a map inside a tab strip. but the map is not centralized when we click on the tab with the map. Map is aligned to the left side of the container. see our example: http://dojo.telerik.com/agOpU
    but when the tab containing map is selected by default - has class "k-state-active", everything is fine. see example: http://dojo.telerik.com/oVAmu

    How can we solve this issue?

    Best,
    CRM-Byggefakta
  2. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2594 posts

    Posted 07 Sep 2015 Link to this post

    Hi Peter,

    In order to achieve the expected result you should set the map center coordinates when the tab became visible (i.e. in the tabStrip activate event). For your convenience I modified the dojo.

    Regards,
    Iliana Nikolova
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Peter Beyer
    Peter Beyer avatar
    27 posts
    Member since:
    Aug 2014

    Posted 10 Sep 2015 Link to this post

    Okay this looks like it is working. I would prefer, that the user can not see that we are moving the position, when we click the tab, but hope it will be solve in a future version of kendo.

     

    Thanks Peter

Back to Top