search for: getdimensions

Displaying 18 results from an estimated 18 matches for "getdimensions".

2006 Mar 17
3
Element.getDimensions
Hi all, should it be considered a bug that Element.getDimensions returns the offsetWidth and offsetHeight properties from elemens having not display none, but clientWidth and clientHeight from elements with display none? Or is it a feature? Regards Lorenz
2006 Apr 10
4
Element.getDimensions() support for IE?
Hey all, I''m not sure if IE can support this, but I''m trying to get the dimensions of an element that has percentages for height/width. In the example code below, I''m trying to get the dimensions for the ''MyCell'' element. Firefox supports Element.getDimensions(''MyCell''), but IE returns 0 for the height & width returned by that call. Thanks Jim ___________________________________________ <table cellspacing="0" cellpadding="0" border="0" style="height:100%;width:100%"> <tr>...
2008 Jun 19
7
getDimensions() fails for elements with ancestors with display: none
Prototype v1.6.0.2 If any of an element''s ancestors are hidden, Element.getDimensions() returns misleading values. In order to address this in my own project, I made the following modification: getDimensions: function(element) { element = $(element); var display = element.getStyle(''display''); + var hiddenAncestor = element.ancestors().any(function(e) {...
2007 Jul 26
1
getWidth(), getHeight(), and getDimensions() in IE6
I''m getting an "Object doesn''t support this property or method" when calling $(element).getWidth() in IE6. I dont see any note of this method not working in IE so I''m confused. Can someone help please? Nate --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2007 Apr 06
5
Getting a dynamically generated elements dimensions
...t snippet ==== <style> .bigBox { height: 100px; width: 200px; } </style> <script> var content = ''<span class="bigbox">hello world</span>''; $(''debug'').update(content); var dim = $(''debug'').getDimensions(); $(''debugLog'').update(''height: '' + dim.height + '' width: '' + dim.width); </script> </head> <body> <span id="debugLog"></span> <span id="debug"></span> ==== end snippet ==== The re...
2008 Feb 21
1
Prototype - Firefox - Slow On Just One Page
...uches Prototype runs very, very slowly. In particular: I use Effect.BlindDown/BlindUp for dropdown menus. Same html and css on all pages. Flies along on all the other pages; here BlindDown crawls, slower by a couple of orders of magnitude. As far as I can tell from Firebug, the stall is in Element.getDimensions(). As soon as I move off the problem page, the menus are fast again. Another example: a textarea with non-Prototype event handlers. The only use of Prototype in the code is a call to $(foo) to go from id''s to elements, and it''s way slow. It''s as if something on this one...
2005 Nov 04
19
Drag & Scroll
When using drag and drop, the browser window will not scroll if you move the mouse off the page. This makes it very difficult, if not impossible to create certain types of web applications. I know this has been mentioned before and is on the Wish List, but it''s very frustrating. If you look at this other Javascript library called "Drag''nDrop & DHTML Library"
2005 Dec 28
1
Problem with IE
...-+-+-+-+-+-+-+-+-+-+-+- Droppables.add(''formulario'', { accept:''elementos'', onDrop:function(element){ var izq = 0; var top = 0; var id_elemento = $(element).firstChild.id + ''_'' + i; var dimensions = Element.getDimensions(element.firstChild); var width = dimensions.width + 30 + ''px''; var height = dimensions.height; nodoNuevo = Builder.node($(element).firstChild.nodeName, {id:id_elemento}); if($(element).firstChild.id == ''editTexto'') nodo...
2008 Aug 20
1
Facebook javascript (FBJS) library
...$(''test1'').show() Toggle element visibility $(''test1'').toggle(); Remove an element from the dom $(''test1'').remove(); Get a hash of calculated element dimensions width/height as integers $(''test1'').getDimensions() Update remote Update: function(target_element, response_type, action_path, callbacks, post_parameters) (FBML/RAW) Ajax.Update(''test1'', ''FBML'', ''http://...'',{ success: function(){} }) Load Remote Load: function(respons...
2006 May 08
2
prototype getHeight safari
Hi I have a weird bug with getHeight or getDimensions().hegiht (prototype) only on safari if I have a html file like this <div id="test"></div> and a embedded css <style> #test { width:100px; height:100px; float:left; } </style> In Safari $(''test'').getHeight returns 100, fine but if the...
2007 Nov 07
1
draggable with iframeshim for ie6
you all know the problem with select and textbox in ie6 where you need an iframe under your divs so they will visually be on top. does scriptaculous have api for iframeshim like yahoo yui does? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send
2006 Feb 03
0
Contribute: Center extension to Prototype''s Position object
...update: false }, arguments[1] || {}); element = $(element) if(!element._centered){ Element.setStyle(element, {position: ''absolute'', zIndex: options.zIndex }); element._centered = true; } var dims = Element.getDimensions(element); Position.prepare(); var winWidth = self.innerWidth || document.documentElement.clientWidth || document.body.clientWidth || 0; var winHeight = self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight || 0; var offLeft = (Positi...
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
2007 Mar 29
0
[929] branches/wxruby2/wxwidgets_282/swig/classes: Fix virtual methods that shouldn''t be (Bug 9682); Add missing methods and
...@ </span><span class="cx"> %ignore DrawPolygon(const wxList * points , wxCoord xoffset = 0, wxCoord yoffset = 0, int fill_style = wxODDEVEN_RULE) ; </span><span class="cx"> </span><span class="cx"> </span><ins>+%rename(GetDimensions) wxDC::GetSize(wxCoord * width , wxCoord * height); +%rename(GetDimensionsMM) wxDC::GetSizeMM(wxCoord *width , wxCoord *height) const; +%rename(GetTextSize) wxDC::GetTextExtent(const wxString& string) const; +%rename(GetMultiLineTextSize) wxDC::GetMultiLineTextExtent(const wxString& string)...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
....SlideDown = function(element) { @@ -682,7 +688,7 @@ Effect.SlideDown = function(element) { // SlideDown need to have the content of the element wrapped in a container element with fixed height! var oldInnerBottom = element.down().getStyle('bottom'); var elementDimensions = element.getDimensions(); - return new Effect.Scale(element, 100, Object.extend({ + return new Effect.Scale(element, 100, Object.extend({ scaleContent: false, scaleX: false, scaleFrom: window.opera ? 0 : 1, @@ -742,7 +748,7 @@ Effect.Squish = function(element) { effect.element.makeClipping();...
2015 Jan 09
0
Wine release 1.7.34
...Ls as const char* in mime_tests. urlmon: Skip query and hash part in find_mime_from_url. urlmon: Use find_mime_from_ext directly in file protocol handler. mshtml: Treat empty bstrHref as not specified in IHTMLDocument2::createStyleSheet. mshtml: Added nsIEmbeddingSiteWindow::GetDimensions implementation. mshtml: Added screenLeft and screenTop properties implementation. mshtml: Use standard list to store task queue. mshtml: Flush pending document node tasks before firing onload event. mshtml: Delay onreadystateevent notification if script elemenet is not added...
2006 Apr 25
12
RE: Element.scrollTo duration isn''t working
I thought the duration parameter was only used with Effect functions, but I could be wrong. Greg > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs- > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Joe Hudson > Sent: Tuesday, April 25, 2006 8:37 AM > To:
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server