Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RelatedItemsFieldWidget: usability completely broken #2932

Open
zopyx opened this issue Aug 12, 2019 · 1 comment
Open

RelatedItemsFieldWidget: usability completely broken #2932

zopyx opened this issue Aug 12, 2019 · 1 comment

Comments

@zopyx
Copy link
Member

zopyx commented Aug 12, 2019

We have a slideshow portlet defines as

class ISlideshowPortlet(IPortletDataProvider):
    """Schema for a slideshow portlet.
    """

    header = TextLine(
        title=_(u"Header"),
        description=_(u"The header."),
        required=False,
        default=u"Slideshow")

    widget(
        'images',
        RelatedItemsFieldWidget,
        pattern_options={
            'selectableTypes': ['Image']
        }
    )

    images = RelationList(
        title=_(u"Images"),
        default=[],
        value_type=zope.schema.Choice(
            title=_("Image"),
            required=True,
            vocabulary='plone.app.vocabularies.Catalog'),
        required=False)


For the first time the widget opens the list with the contents below:

screenshot-dev2 zopyx de_20081-2019 08 12-15_25_33

For the second time the content list is place above:

screenshot-dev2 zopyx de_20081-2019 08 12-15_26_12

And for the third time the content list opens again below with the result that have of the contents list is hidden and can not be reached:

screenshot-dev2 zopyx de_20081-2019 08 12-15_27_12

The UI approach is broken from ground up.

@zopyx zopyx modified the milestones: Future, Plone 5.2 Aug 12, 2019
@fredvd
Copy link
Member

fredvd commented Aug 14, 2019

@zopyx The issue is not exactly the same, but I encountered multiple problems with TinyMCE menu's disappaering last year, the common pattern here is the modal pattern from Mockup.

See these two issues:

I only see the scroll position of the whole page slightly in your third screenshot. Can you confirm that the scroll position of the whole page is related to the shifting of the content list in the related items widget in the modal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants