"Wall" block looks ridiculously narrow in Mahara 1.10.0

Bug #1384547 reported by Aaron Wells on 2014-10-23
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mahara
High
Unassigned
1.10
High
Unassigned
15.04
High
Unassigned

Bug Description

In Mahara 1.10.0, using the default theme the text area to enter in a wall post, is really narrow. See the attached screenshot.

Aaron Wells (u-aaronw) wrote :
Robert Lyon (robertl-9) wrote :

Problem is before this patch -> https://reviews.mahara.org/#/c/3839/ some textarea, when hidden on page load, (as well as their parent elements) was returning a div container with style 0px by 1px due to the textarea not having width/height when display = none.

The patch fixed that but broke this - due to the fact that if you set a textarea pieform element with width attribute it sets the cols attribute as 1/10 of the width value - even if you specify cols as well. So that textarea is suppose to be 50 cols wide but ends up being generated as 10 cos wide.

However, saying that, what would be better is if the js can detect if the textarea's parent is visible on page load and then find out the width of the parent and use that to calculate the textarea width if the textarea has it's width set to 100% and only fallback to the cloning of the textarea and appending it to body element if both textarea and it's parent are display = none

Aaron Wells (u-aaronw) wrote :

Fixed by patch https://reviews.mahara.org/3904 apparently.

Robert Lyon (robertl-9) on 2015-04-17
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments