Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Chris/issue 18 #431

Merged
merged 7 commits into from
Mar 12, 2012
Merged

Chris/issue 18 #431

merged 7 commits into from
Mar 12, 2012

Conversation

chrisbank
Copy link
Contributor

Fixes issue #18. The man thing was adjusting the child width to the parents scrollWidth

@gruehle
Copy link
Member

gruehle commented Mar 12, 2012

Reviewing

function updateChildWidthToParentScrollwidth($parent) {
var $firstChild = $parent.children().first();
//clear the width first so we get the natural scrollWidth below
$firstChild.width("");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function should either work on all children of the parent, or be passed a child (if you just pass a child, you will need to do an initial pass to clear the child widths first).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do it to all the children

gruehle added a commit that referenced this pull request Mar 12, 2012
@gruehle gruehle merged commit 5844d4a into master Mar 12, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants