Jump to content
Gadgetto

Problem with InputfieldWrapper and columnWidth -> different rendering in Default, Reno and UIKit admin theme

Recommended Posts

Hi there,

I have a simple Fieldset layout in a process module based on the code below:

        /** @var InputfieldWrapper $wrapper */
        $wrapper = new InputfieldWrapper();

            /** @var InputfieldFieldset $fsTop */
            $fsTop = $modules->get('InputfieldFieldset');
            $fsTop->icon = 'bar-chart';
            $fsTop->label = $this->_('Top Store Actions');
            $fsTop->wrapClass = 'bottomSpace';
    
                /** @var InputfieldMarkup $f */
                $f = $modules->get('InputfieldMarkup');
                $f->label = $this->_('Top Customers');
                $f->value = $this->_renderTableCustomers($dashboard[SnipRest::resourcePathCustomers]);
                $f->columnWidth = 50;
                $f->collapsed = Inputfield::collapsedNever;
                
            $fsTop->add($f);
            
                /** @var InputfieldMarkup $f */
                $f = $modules->get('InputfieldMarkup');
                $f->label = $this->_('Top Products');
                $f->value = $this->_renderTableProducts($dashboard[SnipRest::resourcePathProducts]);
                $f->columnWidth = 50;
                $f->collapsed = Inputfield::collapsedNever;
                
            $fsTop->add($f);
            
        $wrapper->add($fsTop);

        $out .= $wrapper->render();

In UIKit admin theme it renders correctly like this:

uikit.thumb.png.9bf0d568cb00903a0be3ab543e8bb000.png

In Default and Reno theme like this (which is wrong):

default.thumb.png.8b7a426f85bf7e368d43bb2a93928934.png

reno.thumb.png.e99da78693d19405f0dc984629be078b.png

If I change the InputfieldWrapper to InputfieldForm it works as expected. But I don't like to use a form wrapper because the fields don't represent a form and they don't have any input.

What am I doing wrong? 

Greetings,
Martin

 

  • Like 1

Share this post


Link to post
Share on other sites

Probably a bug in Reno and Default Themes. Are those older themes still supported or are they only there for legacy purpose?

Share this post


Link to post
Share on other sites
4 hours ago, Gadgetto said:

Are those older themes still supported or are they only there for legacy purpose?

I guess Ryan is going to fix any bugs which are worth the effort, especially if the bug report itself is as helpful as it can be.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...