Displaying 10 results from an estimated 10 matches for "setdimension".
2005 Jun 24
3
flashing divs in IE with use of BlindUp and BlindDown
I''m having an issue with flashing divs in IE (firefox is fine and the
only other browser I''ve used)
My scenario is as follows. I have 2 divs (initially hidden) and using
the BlindDown and BlindUp functions (possibly others) the divs flash
when starting to roll down in BlindDown (due to the Element.show call)
and also at the end of the BlindUp call (due to the Element.hide call)
2008 Jan 08
28
1.9.3 release, rakefile
Hi
I''d like to put out a 1.9.3 release perhaps later this week/weekend. If
you have a chance to test the build and samples esp with latest
rubygems, please do.
There are still some bugs on the list, and samples to do, but this
should address all the build/install probs that have come up. And it
would be good to get some testing and feedback on some of the new classes.
A note on the
2005 Jul 12
0
Re: flashing divs in IE with use of BlindUp andBlindDown
...: false,
> scaleX: false,
> scaleMode: ''contents'',
> scaleFrom: 0
> }.extend(arguments[1] || {})
> );
> }
>
> the only change here is a start height of ''1px'' instead of 0 also
> change the start of Effect.Scale.setDimensions from:
>
> setDimensions: function(width, height) {
> if(this.options.scaleX) this.element.style.width = width + ''px'';
>
> to:
>
> setDimensions: function(width, height) {
> width = Math.round(width) || 1;
> height = Math.round(height) ||...
2006 Apr 23
4
Wx::Window#get_text_extent patch
Here''s a patch to fix Wx::Window#get_text_extent - it requires that the
patches from teh last message are applied, to enable *INPUT etc typemaps.
Roy - though the function works correctly when called from Ruby, it
still causes a crash when called internally when clicking on a Wx::Grid
cell. Saw your message on SWIG mailing list, hopefully someone there can
help out.
alex
2006 Apr 08
0
MSN like blind - BottomToTop
...lHeight, this.element.scrollWidth];
if(!this.dims)
this.dims = [this.options.scaleMode.originalHeight,
this.options.scaleMode.originalWidth];
},
update: function(position) {
var currentScale = (this.options.scaleFrom / 100.0) + (this.factor
* position);
this.setDimensions(this.dims[0] * currentScale, this.dims[1] *
currentScale);
},
finish: function(position) {
if (this.restoreAfterFinish) this.element.setStyle(this.originalStyle);
},
setDimensions: function(height, width) {
var d = {};
d.height = height + ''px'';
d.top = (th...
2006 Apr 28
3
AJAX effects not smooth on Rails
I''ve been playing around with AJAX effects using
ActionView::Helpers::ScriptaculousHelper. When I implement these
''freehand'' on a regular html page the Scriptaculous effects are smooth.
However when I use them rails methods they are not.
For example Appear, Grow and Slideup all blink the text at the start.
As in the content appears for a split second, then
2006 Jan 12
1
Effect.Puff Problem - first frame is wrong size
...on.
Watching it closely though and it seems to do a quick jump to a new
size and then slowly do the rest of the effects.
Stepping through the code the issue occurs in the ''render'' when it
calls this.update. Digging into the update (which is in
Effect.Scale) it calls the setDimensions and passes in reasonable
values, in this case 144 high, 421 wide. Inside of there it does the
setStyle passing in again, correct values.
This is where it goes fishy. Inspecting the element before the
setStyle I can see the correct values for ''currentHeight'' and
'...
2007 Apr 30
0
[998] branches/wxruby2/wxwidgets_282/swig/classes/Window.i: Additional %ignore needed for Wx::Window in 2.8
...) const;
</span><span class="cx"> %ignore wxWindow::GetPosition(int* x , int* y ) const;
</span><ins>+%ignore wxWindow::GetScreenPosition(int* x, int* y) const;
</ins><span class="cx">
</span><span class="cx"> %rename(SetDimensions) wxWindow::SetSize(int x , int y , int width , int height , int sizeFlags = wxSIZE_AUTO) ;
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>
2007 Mar 18
0
[897] branches/wxruby2/wxwidgets_282/swig/classes/Window.i: DISOWN typemap to prevent crash on GC/exit when caret has been set (bug #9093)
...82/swig/classes/Window.i        2007-03-18 10:46:56 UTC (rev 897)
</span><span class="lines">@@ -26,6 +26,9 @@
</span><span class="cx">
</span><span class="cx"> %rename(SetDimensions) wxWindow::SetSize(int x , int y , int width , int height , int sizeFlags = wxSIZE_AUTO) ;
</span><span class="cx">
</span><ins>+// Caret set by set_caret becomes owned by C++
+%apply SWIGTYPE *DISOWN {wxCaret* caret};
+
</ins><span class="cx&q...
2007 Jul 21
0
[1129] trunk/wxruby2/swig/classes/Window.i: Add DISOWN typemap for ToolTip so it isn''t double-deleted
...swig/classes/Window.i        2007-07-21 12:21:01 UTC (rev 1129)
</span><span class="lines">@@ -31,12 +31,13 @@
</span><span class="cx">
</span><span class="cx"> %rename(SetDimensions) wxWindow::SetSize(int x , int y , int width , int height , int sizeFlags = wxSIZE_AUTO) ;
</span><span class="cx">
</span><del>-// Caret set by set_caret becomes owned by C++
-%apply SWIGTYPE *DISOWN {wxCaret* caret};
</del><ins>+// Any of these...