
|
If you were logged in you would be able to see more operations.
|
|
|
| Severity: |
Blocker
|
| Fixed in Change#: |
8,459
|
| Runtime: |
N/A
|
| Fix in hand: |
True, False
|
|
Webtop needs to be able to explicitly control if tooltips show up above or below the mouse location. The existing tooltip class in incubator/tooltip does not allow this. I've provided a diff for changes to that class that add the functionality while maintaining the existing functionality.
41a42,46
> <!--- values = "'above','below',''"
> attribute to control if the tooltip shows up above or below the
> mouse position. Leaving this value empty indicates a best guess
> will be made by the component. -->
> <attribute name="tipvalign" value="" type="string"/>
90d94
< var tipy = this._lastmousey + 25;
98,102c102,122
<
< var pointerontop = true;
< if (tipy > canvas.height - 30) {
< tipy = this._lastmousey - 25;
< pointerontop = false;
---
> var tipy = 0;
> var pointerontop;
> switch (this.tipvalign) {
> case "above":
> tipy = this._lastmousey - 25;
> pointerontop = false;
> break;
>
> case "below":
> tipy = this._lastmousey + 25;
> pointerontop = true;
> break;
>
> default:
> if (tipy > canvas.height - 30) {
> tipy = this._lastmousey - 25;
> pointerontop = false;
> } else {
> tipy = this._lastmousey + 25;
> pointerontop = true;
> }
104c124
<
---
>
121c141
< * Copyright 2006-2007 Laszlo Systems, Inc. All Rights Reserved. *
---
> * Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. *
|
|
Description
|
Webtop needs to be able to explicitly control if tooltips show up above or below the mouse location. The existing tooltip class in incubator/tooltip does not allow this. I've provided a diff for changes to that class that add the functionality while maintaining the existing functionality.
41a42,46
> <!--- values = "'above','below',''"
> attribute to control if the tooltip shows up above or below the
> mouse position. Leaving this value empty indicates a best guess
> will be made by the component. -->
> <attribute name="tipvalign" value="" type="string"/>
90d94
< var tipy = this._lastmousey + 25;
98,102c102,122
<
< var pointerontop = true;
< if (tipy > canvas.height - 30) {
< tipy = this._lastmousey - 25;
< pointerontop = false;
---
> var tipy = 0;
> var pointerontop;
> switch (this.tipvalign) {
> case "above":
> tipy = this._lastmousey - 25;
> pointerontop = false;
> break;
>
> case "below":
> tipy = this._lastmousey + 25;
> pointerontop = true;
> break;
>
> default:
> if (tipy > canvas.height - 30) {
> tipy = this._lastmousey - 25;
> pointerontop = false;
> } else {
> tipy = this._lastmousey + 25;
> pointerontop = true;
> }
104c124
<
---
>
121c141
< * Copyright 2006-2007 Laszlo Systems, Inc. All Rights Reserved. *
---
> * Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. * |
Show » |
|
41a42,46
> <!--- values = "'above','below',''"
> attribute to control if the tooltip shows up above or below the
> mouse position. Leaving this value empty indicates a best guess
> will be made by the component. -->
> <attribute name="tipvalign" value="" type="string"/>
90d94
< var tipy = this._lastmousey + 25;
98,102c102,122
<
< var pointerontop = true;
< if (tipy > canvas.height - 30) {
< tipy = this._lastmousey - 25;
< pointerontop = false;
---
> var tipy = this._lastmousey + 25;
> var pointerontop;
> switch (this.tipvalign) {
> case "above":
> tipy = this._lastmousey - 25;
> pointerontop = false;
> break;
>
> case "below":
> tipy = this._lastmousey + 25;
> pointerontop = true;
> break;
>
> default:
> if (tipy > canvas.height - 30) {
> tipy = this._lastmousey - 25;
> pointerontop = false;
> } else {
> tipy = this._lastmousey + 25;
> pointerontop = true;
> }
104c124
<
---
>
121c141
< * Copyright 2006-2007 Laszlo Systems, Inc. All Rights Reserved. *
---
> * Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. *