ENART.POLALA.COM
welcome to my space
X
Coffee | Sexuality | Medicine | Elderly Care | Soccer | Insurance | Small Business | Exotic Locations | Related articles

TAB behavior with image

Published by: admin 2010-03-18
  • Hello,

    The behavior of the tabs in a tab panel changes when an image is inserted in the text of a tab. The tab with the image always will look active even if the user clicks the other tab. This is a simple code that generates a panel with two tabs:


    var TabsExample = {

    init : function(){

    // basic tabs 1, built from existing content

    var tabs = new Ext.TabPanel('tabs1');

    var t1 = tabs.addTab('tab 1', " Tab 1");

    var t2 = tabs.addTab('tab 2', "Tab 2");

    tabs.activate('tab 1');

    t1.setContent("
    Content of tab 1")

    t2.setContent("
    Content of tab 2")

    }

    }

    Ext.EventManager.onDocumentReady(TabsExample.init, TabsExample, true);

    An image of the output is attached too. Do somebody knows how can this be fixed?

    Thanks in advance,
    Novandria


  • The image is making the tab element too deep.

    Use a background image instead of an embedded image, or size your image explicitly to height:16px.


  • Thank you for the replies.

    jsakalos,

    > Can you please prepare a complete html/js file(s) that I'd drop into ext tree and that would show the problem?
    These are the example files:
    HTML:










    Tabs Example





































    Tab Panel Examples



    Note that the js and css is not minified so it is readable. See tabs-example.js for the tab creation code

    and tabs-example.css for the css.





    Tabs without fixed height that resize to the content. Built from existing markup.










    Here's my script:







    var tabs = new Ext.TabPanel('tabs1');

    tabs.addTab('script', "View Script");

    tabs.addTab('markup', "View Markup");

    tabs.activate('script');








  • Can you please prepare a complete html/js file(s) that I'd drop into ext tree and that would show the problem?





  • Allergies.. no relief?!?
    Religion in the workplace?
  • i hate my body what do i do
  • are tattoos on the bum painful
  • how bad does it hurt to get a tattoo on the side of your neck
  • does tattoo hurt here
  • 80 039 s outfits …
  • anyone know something about proactiv
  • help with impossible to control baby hairs
  • i need help with clothes
  • dream of my teacher taking off her shirt and showing us her tattoos
  • i never wear my hair down but my friends think i should
  • i 039 m wanting a small tattoo just below my stomach but not as far down as my 039 privatearea 039 how much will it hurt
  • what does it feel like to have a tattoo does it hurt burn what
  • do tattoos damage your skin
  • edit please can somebody please help me edit this not cheating in any way just want some pointers
  • abercrombie kids sizes
  •  
  • this is a question for other biracial people basically i wanted to ask how did you find your identity
  • how much would my hair cost birthday 039 s in 4 days
  • how much will it hurt
  • what is it like getting a tattoo like does it hurt
  • belly button piercings and tattoos
  • all of my friends have been asked to homecoming except me
  • i need help please what kind of handbag goes with pretty much anything
  • on a scale from 1 10 how much does it hurt to get a tattoo
  • will it hurt to get a tattoo on my finger
  • how bad does it hurt
  • do tattoos hurtttt
  • how do you feel about arranged marriages
  • how bad did your tattoo hurt
  • does gettin a lowerback tattoo hurt
  • Search:  
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about TAB behavior with image , Please add it free.

    About us -Site map -Advertisement -Jion us -Contact usExchange linksSponsor us
    Copyright© 2008 enart.polala.com All Rights Reserved
    Site made&Support support@enart.polala.com    E-mail: web@enart.polala.com