This project is archived and is in readonly mode.

#147 ✓resolved
3n

Fx.Slide no longer sets height:auto onOpen.

Reported by 3n | June 20th, 2008 @ 01:23 AM

Maybe intentional, but it broke a few of my components. Example: I have an element slide in that is re-sizable - with the height set resizing doesn't work. Here's a patch:

From 1c024cfe39764fe7a202d6c6ba1ccbe8b1991fe0 Mon Sep 17 00:00:00 2001

From: Ian Collins

Date: Thu, 19 Jun 2008 17:14:46 -0700

Subject: [PATCH] putting back in height:auto on slide open.

---

Source/Fx/Fx.Slide.js | 1 +

1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Source/Fx/Fx.Slide.js b/Source/Fx/Fx.Slide.js

index 4546aab..9d9e9fb 100644

--- a/Source/Fx/Fx.Slide.js

+++ b/Source/Fx/Fx.Slide.js

@@ -17,6 +17,7 @@ Fx.Slide = new Class({

initialize: function(element, options){

this.addEvent('complete', function(){

this.open = (this.wrapper['offset' + this.layout.capitalize()] != 0);

+ if (this.open) this.wrapper.setStyle(this.layout, 'auto');

if (this.open && Browser.Engine.webkit419) this.element.dispose().inject(this.wrapper);

}, true);

this.element = this.subject = $(element);

--

1.5.4.2

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Tags

Pages