You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Pierre Smits (JIRA)" <ji...@apache.org> on 2016/03/18 09:44:33 UTC

[jira] [Comment Edited] (OFBIZ-6927) Layered-Modal menu item does not respect width and height parameters

    [ https://issues.apache.org/jira/browse/OFBIZ-6927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15201187#comment-15201187 ] 

Pierre Smits edited comment on OFBIZ-6927 at 3/18/16 8:44 AM:
--------------------------------------------------------------

I created a menu item with a width of 1000 and a height of 400
{code}
        <menu-item name="NewProductionRun" title="${uiLabelMap.CreateProductionRun}">
            <link target="nProductionRunLayer" link-type="layered-modal"  width="1000" height="400"/>
        </menu-item>
{code}
This should show a modal window (as per attached image #1) that fits the form.

In stead it shows a modal window (as per attached image #2) where fields run outside the window.


was (Author: pfm.smits):
I created a menu item with a width of 1000 and a height of 400
{code}
        <menu-item name="NewProductionRun" title="${uiLabelMap.CreateProductionRun}">
            <link target="nProductionRunLayer" link-type="layered-modal"  width="1000" height="400"/>
        </menu-item>

This should show a modal window (as per attached image #1) that fits the form.

In stead it shows a modal window (as per attached image #2) where fields run outside the window.

> Layered-Modal menu item does not respect width and height parameters
> --------------------------------------------------------------------
>
>                 Key: OFBIZ-6927
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6927
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Pierre Smits
>              Labels: modalwindow, renderer
>             Fix For: Trunk
>
>         Attachments: Screen Shot 2016-03-18 at 09.42.00.png, Screen Shot 2016-03-18 at 09.42.39.png
>
>
> When using a link of type 'layered-modal' the renderer doesn't work with the provided width and height parameters.
> e.g.: 
> {code}<link link-type="layered-modal" target="newProductionRun" width="1000" height="600"/>{code} should show a modal window with width =1000 and height=600 pixels. However, the resulting code for the dialog yields:
> {code}
> autoOpen: false,
>                  title: "New Production Run",
>                  height: 600,
>                  width: 800,
>                  modal: true,
> {code}
> The used values are from the properties definitions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)