Results 1 to 4 of 4

Thread: Ext 6.2.1 leaflet Panel won´t fit to the available height

  1. #1
    Sencha User
    Join Date
    Mar 2017
    Posts
    11
    Answers
    3

    Default Answered: Ext 6.2.1 leaflet Panel won´t fit to the available height

    Hey!
    One tab of my tappanel should be a leafletmap. See following Code:
    Code:
    {    title: 'Map',
    iconCls: 'x-fa fa-map-o',
    layout: 'fit',
    items: [{
            xtype: 'leafletmap',
    id: 'map1',
    autoMapCenter: false,
    useCurrentLocation: false,
    mapOptions: {
                zoom: 14
    }
        }]
    }
    The Problem is that "fit" only fits the width. Not the height.. And i cant give it a fixed height cause of various heights of mobile devices.
    Did someone fixed that Problem already

  2. Got it!. I searched for the parent div which has the class .x-map-container and gave it in my css height:100%

  3. #2
    Sencha Premium Member
    Join Date
    Sep 2014
    Location
    New Jersey
    Posts
    166
    Answers
    11

    Default

    Where is your map creation code? That would be helpful

  4. #3

  5. #4
    Sencha User
    Join Date
    Mar 2017
    Posts
    11
    Answers
    3

    Default

    Got it!. I searched for the parent div which has the class .x-map-container and gave it in my css height:100%

Similar Threads

  1. Leaflet library breaks on production build
    By tschortsch in forum Sencha Cmd
    Replies: 4
    Last Post: 28 Sep 2013, 6:58 AM
  2. Ext.ux.Leaflet (with offline tiles)
    By Joel in forum Sencha Touch 1.x: Examples and Showcases
    Replies: 20
    Last Post: 16 Apr 2013, 6:32 AM
  3. Problem with Click-Event on a Leaflet-Map
    By tschortsch in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 21 Mar 2013, 12:21 AM
  4. Leaflet Marker in Sencha 2 Architect or Touch
    By ylimani in forum Sencha Touch 2.x: Discussion
    Replies: 2
    Last Post: 17 Dec 2012, 6:53 AM
  5. Extend Map for Leaflet
    By rob.n in forum Sencha Touch 2.x: Q&A
    Replies: 5
    Last Post: 22 May 2012, 5:26 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •