Explore the community Forums Lectora Lectora Suggestions Rendering images from text buttons

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #318516 Score: 0
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    303 pts
    @timk

    I’m trying to create a text button with a circle shape. Lectora will render the shape into an image during publication. The problem I’m having is that the shape, the circle, is positioned not at x:0 / y:0 but at x:1 / y:1 in the PNG, so 1px is cut off on the right and on the bottom making the button look slightly unround. Please move the shape 1px up and left in the PNG.

    Thanks

    Tim

    #318533 Score: 1
    Profile photo of Darin Lueken
    Darin Lueken
    Member
    beginner
    intermediate
    friend finder
    junior moderator
    contributor
    LUC16 Attendee
    wise owl
    verified member
    5 pts
    @dlueken

    Thanks Tim.  I created an issue in our bug tracking system for this problem and upped the priority to get one of the developers to look into it.  If we have any trouble recreating the problem we will get back to you.

    Regards,

    Darin

    This post has received 1 vote up.
    #318537 Score: 0
    Profile photo of Darrel Somoza
    Darrel Somoza
    Member
    contributor
    friend finder
    beginner
    intermediate
    junior moderator
    advanced
    wise owl
    curious george
    profile
    199 pts
    @Klaatu

    Tim, until what seems like a bug is fixed, you can add a 1px border the same color as the background. That will eliminate the issue by hiding what is cut off. Why aren’t you using a text button?

    #318558 Score: 0
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    303 pts
    @timk

    It is a normal text button (see screenshot). The problem doesn’t occur if I use my own images as the “fill style”.

    Tim

    Attachments:
    #318579 Score: 0
    Profile photo of Darrel Somoza
    Darrel Somoza
    Member
    contributor
    friend finder
    beginner
    intermediate
    junior moderator
    advanced
    wise owl
    curious george
    profile
    199 pts
    @Klaatu

    Gotcha, definite bug. Effects both shapes and buttons. The border thing works on both as a work around until it’s fixed.

    #320381 Score: 0
    Profile photo of Daryl Fleary
    Daryl Fleary
    Member
    beginner
    intermediate
    advanced
    friend finder
    LUC16
    LUC16 Attendee
    contributor
    wise owl
    verified member
    17 pts
    @dfleary

    Tim:

    After much trial I was able to recreate the problem, and Darrel’s “workaround” is correct. As far as I can tell, the problem only occurs when the border of the circle is set to a weight of zero (“0”). For some reason the shape is getting clipped by a pixel. However if you set your shape with a border of one (“1”) pixel and set the border color the same as the circle fill it does not occur.  We’ll have the development team look into a proper fix so that a one pixel border isn’t necessary. Thanks for alerting us.

    – – Daryl

     

    #320426 Score: 0
    Profile photo of Darrel Somoza
    Darrel Somoza
    Member
    contributor
    friend finder
    beginner
    intermediate
    junior moderator
    advanced
    wise owl
    curious george
    profile
    199 pts
    @Klaatu

    Daryl, does Lectora use any raphael.js code? If so, there is a sub-pixel offset issue (and a fix) you should be aware of.

    Darrel

    #320436 Score: 0
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    303 pts
    @timk

    Daryl, thank you very much. It would be nice to have it fixed but of course adding a border to the form is an easy enough workaround.

    Tim

     

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.