Results 1 to 3 of 3

Thread: IE9: Error in TextMetrics getTextWidth

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Exclamation IE9: Error in TextMetrics getTextWidth

    Ext version tested:
    • Ext 3.3.3


    Adapter used:
    • ext


    css used:
    • only default ext-all.css




    Browser versions tested against:
    • IE9
    • IE8
    • Chrome 12
    • Firefox


    Operating System:
    • Win 7


    Description:
    • There is an error in TextMetrics.getTextWidth class, which calculates the wrong width when IE9.


    Test Case:

    Code:
       Example:
    Ext.onReady(function() {
    	new Ext.Viewport({
    		width : 300,
    		height : 300,
    		items : [ {
    			xtype : "button",
    			id : "b1",
    			text : "Shaggy & Scooby Doo"
    		} ]
    	});
    
    	new Ext.ToolTip({
    		target : 'b1',
    		html : '2 registros inseridos'
    	});
    
    	Ext.QuickTips.init();
    
    });
    See this URL : http://


    Steps to reproduce the problem:
    • Example can be found in the tooltip button where the text breaking in two lines, because the calculated size for the container is less than required.
    • FireFox, IE8 and Chrome the example works perfectly.


    The result that was expected:
    • The tooltip button in one line


    The result that occurs instead:
    • The tooltip button in two lines


    Screenshot or Video:


    Debugging already done:


    Possible fix:
    • not provided

  2. #2
    Sencha Premium Member
    Join Date
    May 2011
    Posts
    9

    Exclamation

    I am seeing the same issue in 3.4.0

    EDIT: The issue appears to go away if I remove <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> from my page...

  3. #3

    Lightbulb

    There is an override for this at http://www.sencha.com/forum/showthre...des-for-3.4.0& on Ext.Tip.doAutoWidth

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
  •