I figured it out. It took a bunch of digging and trial & error, but it works.
Here's my new code... I don't need the anchor element anymore (as far as I
can tell).
_createMapPane : function()
{
this.getMapObj().setWidth(640);
this.getMapObj().setHeight(480);
this._mapField = new qx.ui.basic.Image;
this._mapField.setAllowShrinkX(true); // <= This is the magic trick to
fix the separator.
this._mapField.setAllowShrinkY(true);
this._mapField.setUserBounds(0, 0, 640, 480); // <= This is for
positioning.
this._mapField.setSource("mmclient/test.png");
this._mapField.addListener("mousedown", this._mapFieldMouseDown,
this);
this._mapField.addListener("mouseup", this._mapFieldMouseUp, this);
this._mapField.addListener("mousemove", this._mapFieldMouseMove,
this);
this.add(this._mapField);
},
...
Now I just need to implement part the RPC-backend, and then try to get
Vector Graphics working again.
~Brant
rabrant wrote:
>
> Here is the new code that doesn't work right: (For Qooxdoo-1.3)
> qx.Class.define("mmclient.MapView",
> {
> extend : qx.ui.container.Composite,
> ...
> members :
> {
> /**
> * TODOC
> *
> * @type member
> * @return {void}
> */
> _createMapPane : function()
> {
> this.getMapObj().setWidth(640);
> this.getMapObj().setHeight(480);
>
> this._mapField = new qx.ui.basic.Image;
> this.setImage(this._mapField);
> this.add(this.getImage());
>
> this._mapField.setSource("mmclient/test.png");
> },
> ...
> I'm wondering how I position both the _mapField image and the
> _drawField to the same location... Also, when I add the image to the
> layout the vertical-separator won't resize because the image-size is
> blocking it.
>
> ~Brant
>
> ------------------------------------------------------------------------------
> The modern datacenter depends on network connectivity to access resources
> and provide services. The best practices for maximizing a physical
> server's
> connectivity to a physical network are well understood - see how these
> rules translate into the virtual world?
> http://p.sf.net/sfu/oracle-sfdevnlfb
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Having-Trouble-Converting-old-qooxdoo-0-7-code-to-version-1-3-tp5996657p5997045.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel