Hybrid View

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member
    Join Date
    Oct 2011
    Posts
    99
    Vote Rating
    0
    LEWJO10@ca.com is on a distinguished road

      0  

    Default Charting TimeAxis LabelProvider Does Not Handle New Line Very Well

    Charting TimeAxis LabelProvider Does Not Handle New Line Very Well


    Hi Brendan.

    I am trying to use a LabelProvider on a TimeAxis where I format the month and day with "MM/d" followed by a new line “\n” followed by the hours and minutes formatted with "HH:mm".

    The TimeAxis labels format fine in Firefox except that there is too much space between them and the axis. In IE the labels are closer to the axis, but are shifted off center to the left.

    The attached file demonstrates the problem. Please see the method getLabel under time.setLabelProvider.

    Are we not allowed to use a new line in this context?

    If not, then can we provide some SafeHtml instead of just a String?

    Please let me know.

    Thanks,
    John Lewis
    Attached Files

  2. #2
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    Looks like a bug related to the text sprite bounding box calculation not properly taking into account new line characters. Thanks for the use case.

  3. #3
    Ext GWT Premium Member
    Join Date
    Oct 2011
    Posts
    99
    Vote Rating
    0
    LEWJO10@ca.com is on a distinguished road

      0  

    Default


    Hi Brendan,

    Thanks for handling this.

    John Lewis

Thread Participants: 1