#1 May 7, 2015 4:11pm

jmason03
Member
Registered: January 9, 2014
Posts: 123

Matrix Callout Margin

I created a module form where I have a matrix using a list display directly above a matrix that uses a callout display. There seems to be a problem if matrices appear in that order. The "callouts_no_margin" class gets added to the last matrix and adds a negative margin to it that pushes it up into the matrix above it. I believe the problem is on core/admin/form-field-types/draw/matrix.php line 5: $field["type"] = "callouts"; // Pretend to be callouts to work back-to-back

If I comment that whole line out, the fields display correctly, but based on the comment on that line I wasn't sure if there would be other unknown consequences of me doing that for different form field setups. So I wanted see if you knew if removing that line would negatively impact anything?

Thanks

Matrix Image

Offline

#2 May 12, 2015 3:26pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Matrix Callout Margin

Good catch! Sorry for the delay -- vacation and a funeral had me out of commission for a week and a half.

This commit should fix the issue (but let me know if it doesn't!)
https://github.com/bigtreecms/BigTree-C … 94f7ad01a8

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.