[commits-cosmo] (br) [3253] fix for bug 7518 - prevent scroll bar
jumps
Bobby Rullo
br at osafoundation.org
Mon Jan 8 18:10:31 PST 2007
whoops. That's bug 7625. Sorry bout that.
Bobby
On Jan 8, 2007, at 6:08 PM, svncheckin at osafoundation.org wrote:
> Revision
> 3253
> Author
> br
> Date
> 2007-01-08 18:08:08 -0800 (Mon, 08 Jan 2007)
> Log Message
>
> fix for bug 7518 - prevent scroll bar jumps
> Modified Paths
>
> cosmo/trunk/src/main/webapp/js/cosmo/ui/widget/
> CollectionDetailsDialog.js
> Diff
>
> Modified: cosmo/trunk/src/main/webapp/js/cosmo/ui/widget/
> CollectionDetailsDialog.js (3252 => 3253)
>
> --- cosmo/trunk/src/main/webapp/js/cosmo/ui/widget/
> CollectionDetailsDialog.js 2007-01-09 01:28:16 UTC (rev 3252)
> +++ cosmo/trunk/src/main/webapp/js/cosmo/ui/widget/
> CollectionDetailsDialog.js 2007-01-09 02:08:08 UTC (rev 3253)
> @@ -211,26 +211,31 @@
> /*string*/ displayName,
> /*cosmo.conduits.Conduit*/ conduit,
> transportInfo){
> -
> +
> + var dummyNode = document.createElement('span');
> var contentWidget = dojo.widget.createWidget
> ("cosmo:CollectionDetailsDialog",
> { calendar: calendar,
> displayName: displayName,
> conduit: conduit,
> transportInfo: transportInfo },
> - null, 'last');
> -
> + dummyNode, 'last');
> +
> + dummyNode.removeChild(contentWidget.domNode);
> var btnsRight = [];
>
> - btnsRight.push(dojo.widget.createWidget(
> + var closeButton = dojo.widget.createWidget(
> "cosmo:Button",
> { text: _("Main.CollectionDetails.Close"),
> width: "50px",
> handleOnClick: cosmo.app.hideDialog,
> small: false },
> - null, 'last'));
> + dummyNode, 'last');
>
> + btnsRight.push(closeButton);
> + dummyNode.removeChild(closeButton.domNode);
> +
> if (conduit && conduit.saveDisplayName){
> - btnsRight.push(dojo.widget.createWidget(
> + var saveButton = dojo.widget.createWidget(
> "cosmo:Button",
> { text: getText
> ("Main.CollectionDetails.Save"),
> width: "50px",
> @@ -240,7 +245,9 @@
> cosmo.app.hideDialog();
> },
> small: false },
> - null, 'last'));
> + dummyNode, 'last');
> + btnsRight.push(saveButton);
> + dummyNode.removeChild(saveButton.domNode);
> }
>
> return {
>
> _______________________________________________
> Commits-Cosmo mailing list
> Commits-Cosmo at osafoundation.org
> http://lists.osafoundation.org/cgi-bin/mailman/listinfo/commits-cosmo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/commits-cosmo/attachments/20070108/0229b716/attachment.html
More information about the Commits-Cosmo
mailing list