search for: getwidth

Displaying 13 results from an estimated 13 matches for "getwidth".

Did you mean: setwidth
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: Spinoffs" group. To p...
2006 Nov 28
11
Extending Element with getTop, getWidth, getLeft problem
Hi, I need to extend the Element object with getTop, getWidth, getLeft . I wrote something like this in an js file and loaded it after the prototype.js . ---------------------------------------------------- Object.extend(Element, { getWidth: function(element) { element = $(element); return element.offsetWidth; }, getTop: function(element) {...
2006 Jun 07
0
How to determine width and height of FXImageView?
...n''t know what > to tell Gnuplot there: > - how do I see what the size of that > > @imageview_rec = FXImageView.new(@topFrame_rec, nil, nil, 0, > LAYOUT_FILL_X|LAYOUT_FILL_Y) > > is ? > I tried > p @imageview_rec.getHeight > p @imageview_rec.getWidth > > but that gives me 1 and 1. The FXImageView widget isn''t going to have a known size until it''s created, and I''m guessing you''re calling getHeight() and getWidth() before that happens.
2009 Oct 27
1
Rjava, RImageJ, and/or S4 question.
I am out of my league with this question. The following code starts the java imaging program ImageJ from within R, and displays an image (assuming ImageJ is installed on your computer). library(RImageJ) img <- IJ$openImage( file.choose() ) #pick an available .tif file img$show() # make the image object visible # An image is now displayed # find out about the objects involved >
2004 Aug 13
1
[PATCH] make spotless update
make spotless leaves 2 generated files. diff -purN klibc-0.159.orig/klibc/Makefile klibc-0.159/klibc/Makefile --- klibc-0.159.orig/klibc/Makefile 2004-08-03 23:07:05.000000000 +0200 +++ klibc-0.159/klibc/Makefile 2004-08-13 22:23:35.696699671 +0200 @@ -156,6 +156,7 @@ clean: archclean rm -f sha1hash errlist.c spotless: clean + rm -f include/klibc/havesyscall.h syscalls.nrs find . \( -name
2007 Oct 04
0
Getting mouse position from a timed function - My Solution
...{ this.bodyEl.stopObserving(''mousemove'', this.boundUpdatePosition); }, within: function(element){ //is the cursor within the given element? Return bool var el = $(element); var vpo = el.viewportOffset(); return (this.x > vpo[0] && this.x < vpo[0] + el.getWidth() && this.y > vpo[1] && this.y < vpo[1] + el.getHeight()); } }); Once you have that included in your page, you can use it like this... //Start capturing mouse position. var pointer = new pointerTracker(); //Close the toolbar if the mouse is not hovering over it. C...
2008 Apr 22
2
Prototype's cumulativeOffset() is not a function
..._menu">blah</div> But when I attempt to load this page, I get a script error. I use Firebug for debugging, and it tells me: "$(''content_menu'').cumulativeOffset is not a function". If I substitute cumulativeOffset() for something else, say, getHeight() or getWidth(), then it works. I''ve tried stripping the js and the HTML down to the absolute minimum, but it still gives the same error. (In the original file, there are a BUNCH of other included scripts that do various things on the page, and the HTML is a few kilobytes in size.) So... I''m m...
2006 Oct 20
0
[695] trunk/wxruby2/swig/classes/include/wxPen.h: Get/SetStipple not available on GTK
...;del>- wxBitmap* GetStipple() const; </del><ins>+// not available on GTK +#if defined(__WXMSW__) || defined(__WXMAC__) + wxBitmap* GetStipple() const; +#endif </ins><span class="cx"> int GetStyle() const; </span><span class="cx"> int GetWidth() const; </span><span class="cx"> bool Ok() const; </span><span class="lines">@@ -31,7 +34,10 @@ </span><span class="cx"> void SetColour(int red , int green , int blue ) ; </span><span class="cx"> void...
2008 Jul 07
6
MiniMagick, and processing thumbnails...
I have a requirement that can''t be that outrageous.... I want to be able to upload an image, and have multiple thumbnails be created for each. Then, I want to post process each image (the main image plus the thumbnails) to add borders. The trick is that the borders need to be different for each image. I thought I could use the after_resize handler, but when I try to add a border to
2008 Apr 15
4
trouble streaming images with send_data
...red = BI.new(100, 100, BI::TYPE_INT_RGB) big = biFiltered.createGraphics() $w = 0 $h = 0 begin filename = "#{RAILS_ROOT}/public/images/kids.jpg" imagefile = java.io.File.new(filename) bi = javax.imageio.ImageIO.read(imagefile) w = bi.getWidth(nil); h = bi.getHeight(nil); if bi.getType != BI.TYPE_INT_RGB bi2 = BI.new(w, h, BI::TYPE_INT_RGB) big = bi2.createGraphics() $stderr.print "after getting graphics"...
2006 Nov 06
3
HtmlWindow and friends
Hi Attached is a patch to add HtmlWindow and some of its friends, including HtmlEasyPrinting. Also a sample. I haven''t tried exposing the parsing and rendering API yet to allow custom tags etc - I just wanted to get basic HTML and the 0.6.0 compatibility classes first. There may well be some quite easy classes left. There''s one ugly kludge to get OnOpeningURL to compile -
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
...sp&nbsp&nbsp&nbsp&nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief Returns width of the cell (m_Width member). -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ - </del><span class="cx"> int GetWidth() const; </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief This method performs two actions: - -\begin{enumerate}\itemsep=0pt -\item adjusts the cell''s widt...
2007 Apr 13
0
[954] branches/wxruby2/wxwidgets_282: Additions to Image API 2.6 -> 2.8, remove comment cruft
...mp;nbsp&nbsp&nbsp&nbsp&nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief Gets the width of the image in pixels. -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ - </del><span class="cx"> int GetWidth() const; </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/** -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp * \brief -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp*/ - </del><span class...