Text horizontal alignment problem

12 posts, 0 answers
  1. Alexander
    Alexander avatar
    18 posts
    Member since:
    Jul 2010

    Posted 28 Mar 2011 Link to this post

    Hi.
    In the new release I found some problem with the text horizontal alignment.
    For example, when I add paragraph with some right-aligned text it looks left-aligned:
    (If there are two or more paragraphs, the text is aligned with the right side of longest text)

    _textBox.Document = _xamlFormatProvider.Import(@"
    <t:RadDocument xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns:t=""clr-namespace:Telerik.Windows.Documents.Model;assembly=Telerik.Windows.Documents"" version=""1.1"" LayoutMode=""Flow"" PageViewMargin=""0,0"" ParagraphDefaultSpacingAfter=""0"" SectionDefaultPageMargin=""0,0,0,0"">
      <t:Section>
        <t:Paragraph TextAlignment=""Right"">
          <t:Span FontSize=""16"" Text=""Some text"" />
        </t:Paragraph>
      </t:Section>
    </t:RadDocument>
    ");
  2. Ivailo Karamanolev
    Admin
    Ivailo Karamanolev avatar
    276 posts

    Posted 29 Mar 2011 Link to this post

    Hi Alexander,

    Unfortunately, this is a known issue with the Q1 release. We're working on it as we speak and, hopefully, it will be officially available in Q1 SP1 if not in a LIB before that. We're sorry for any inconvenience caused.

    All the best,
    Ivailo
    the Telerik team
  3. DevCraft banner
  4. Vic
    Vic avatar
    40 posts
    Member since:
    Mar 2009

    Posted 21 Apr 2011 Link to this post

    I noticed that it still isn't corrected in 2011 Q1 SP1, we are also using the XAML data provider.

    Thanks,
    Vic
  5. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 21 Apr 2011 Link to this post

    Hi Vic,

    Actually, we believe that the issue was fixed in the service pack. You can test it in the updated Data-Binding Demo.
    If the problem persists, we would greatly appreciate it if you could elaborate a bit more on your implementation and the behavior you are observing.

    Best wishes,
    Iva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Vic
    Vic avatar
    40 posts
    Member since:
    Mar 2009

    Posted 21 Apr 2011 Link to this post

    The issue I am referring to exists in the demo. Please try to horizontally align text (centered) within a table cell, the settings persist but the actual text alignment doesn't do anything.

    Update: I tried this again in the http://demos.telerik.com/silverlight/#RichTextBox/MSWord demo and it works, seems like this might be a binding issue.

    I also found that running the demo in IE9 causes some exceptions (attached) I was able to run it in Google Chrome.

    Thanks,
    Vic
  7. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 21 Apr 2011 Link to this post

    Hello Vic,

    The exception you are getting is due to the fact that the demo was updated and the browser has a previous version stored in the cache, preventing it from downloading the new version. Emptying the cache should solve the issue and allow you to review the latest demo. Perhaps that was the reason why the alignment glitch seemed to be present when you tested it the first time.
    If you notice anything else, do not hesitate to get back to us.

    All the best,
    Iva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Vic
    Vic avatar
    40 posts
    Member since:
    Mar 2009

    Posted 21 Apr 2011 Link to this post

    Hello Iva,

    Cleared the cache in IE9 and now it displays an "Initialization Failed" dialog, cleared ISO as well.

    My original test was in Google Chrome and the issue still exists.

    Tried the same in IE8, no errors loading the demo though the alignment problem still exists and again only in the binding demo.

    Repro: I would insert a 6x6 table add text in 3 cells then try to center/right/left align, doesn't work. The bound data is refreshed but the data in the RichTextBox doesn't reflect the change.

    Please let me know

    Working:
    http://demos.telerik.com/silverlight/#RichTextBox/MSWord

    Not working:
    http://demos.telerik.com/silverlight/#RichTextBox/Binding

    Thanks

  9. Boby
    Admin
    Boby avatar
    595 posts

    Posted 26 Apr 2011 Link to this post

    Hi Vic,

    We were unable to reproduce aligning issue using your steps in IE nor  in Chrome. I continue to believe that both of the problems are caused by cached older versions of assemblies.
    One of the best way to test if caching is the problem is to start our demo project in InPrivate browsing mode (Incognito in Google Chrome). Thus we will eliminate all uncertainties about not clearing cache properly.
    If you continue to experience problems, you could open a support ticket and send us simple project that reproduces them, so we can investigate them further. 

    Greetings,
    Boby
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. Vic
    Vic avatar
    40 posts
    Member since:
    Mar 2009

    Posted 26 Apr 2011 Link to this post

    Hi Boby,

    I ran the case by our QA team, the results were the same as mine.

    Could you please have another look, if you find that you cannot reproduce this I will try to upload a video of my experience.

    The difference is that it works in the MSWord demo and not in the binding demo, we use binding.

    Thanks again
  11. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 29 Apr 2011 Link to this post

    Hi Vic,

    Thank you for your persistence. We managed to reproduce the issue. The problem is not related to data-binding, but the layout mode of the document - the ParagraphAlignment and CellContentAlignmenr are properly respected only in PagedLayoutMode (the default layout mode of the MS Word demo) and not in FlowLayoutMode (the data-binding demo).
    We will fix the issue. The Telerik points in your account has been updated in appreciation for the bug report.

    Regards,
    Iva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  12. Anthony
    Anthony avatar
    1 posts
    Member since:
    Aug 2015

    Posted 04 Aug 2015 in reply to Iva Toteva Link to this post

    I am finding it iimpossible to align left although the first line start was ok.  When I centred my e-mail address I could not escape to the central alignment.  Very difficult to write with only half page available - big problem.
  13. Tanya
    Admin
    Tanya avatar
    405 posts

    Posted 07 Aug 2015 Link to this post

    Hello Anthony,

    The issue discussed in this thread is already fixed and I have troubles understanding your scenario. Could you share more information? Are you trying to align a text in a paragraph or something else? How does your document look like?

    Regards,
    Tanya
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner