Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6605149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:14:58+00:00 2026-05-25T19:14:58+00:00

I have the following control: app.views.MapControl = Ext.extend(Ext.Panel, { style: { background:’white’ }, items:

  • 0

I have the following control:

app.views.MapControl = Ext.extend(Ext.Panel, 
{
    style: { background:'white' },
    items:
    [{ xtype: 'panel',
       id: 'mapContainer',
       width: 1700, 
       height: 1124,
       html: "<img class='mapImg' style='width:100%; height:100%; 
              padding:0; margin:0' src='imagery/tube_map.gif'>" 
     }],

After the control’s rendering I am adding a few items dynamically like that:

      var newPin = new app.views.Pushpin({x:pinPosX, y:pinPosY});
      this.theMap.add(newPin);

The Pushpin control looks like this:

    app.views.Pushpin = Ext.extend(Ext.Panel, {
           xtype: 'panel',
       style: { background: 'url(imagery/pin.png)' },
       width: 50,
       height: 50,
       x: 0,
       y: 0

The problem:

When I don’t add any pins dynamically then the tube map image show fine. But if I add any, then for every pin I add there is a 50px offset appearing above from the tube map.

Why is that? Could anyone please suggest any work-around?

Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:14:59+00:00Added an answer on May 25, 2026 at 7:14 pm

    The pins are still taking up space. Add position: absolute; to their style.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following XAML for a databound items control to show a list
I have been following the tutorial for adding spinner items to a spinner control
I have the following user-control: <%@ Control Language=C# AutoEventWireup=true CodeFile=FadingMessage.ascx.cs Inherits=includes_FadingMessage %> <asp:PlaceHolder Visible=false
I have the following user control that is embedded within another user control. <UserControl.Resources>
I have the following fields: Inventory control (16 byte record) Product ID code (int
I have the following textbox server control in my web page: <asp:TextBox ID=txtZip runat=server
I have the following code in a MVC User Control (the field names have
I have no control over database schema and have the following (simplified) table structure:
I have the following class: public class LooklessControl : Control { public List<int> IntList
I have the following code: foreach (var control in this.Controls) { } I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.