Jump to content

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
Link to comment
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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...