Author: pyaschenko
Date: 2010-07-06 13:01:55 -0400 (Tue, 06 Jul 2010)
New Revision: 17745
Modified:
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/script/1.html
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/script/SelectBase.js
Log:
Modified:
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/script/1.html
===================================================================
---
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/script/1.html 2010-07-06
16:55:26 UTC (rev 17744)
+++
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/script/1.html 2010-07-06
17:01:55 UTC (rev 17745)
@@ -6,6 +6,7 @@
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Test Page</title>
<script type="text/javascript"
src="..\..\..\..\..\..\..\..\..\..\core\trunk\impl\src\main\resources\META-INF\resources\jquery.js
"></script>
+ <script type="text/javascript"
src="..\..\..\..\..\..\..\..\..\..\core\trunk\impl\src\main\resources\META-INF\resources\jquery.position.js
"></script>
<script type="text/javascript"
src="..\..\..\..\..\..\..\..\..\..\core\trunk\impl\src\main\resources\META-INF\resources\richfaces.js
"></script>
<script type="text/javascript"
src="..\..\..\..\..\..\..\..\..\..\core\trunk\impl\src\main\resources\META-INF\resources\richfaces-event.js
"></script>
<script type="text/javascript"
src="..\..\..\..\..\..\..\..\..\..\core\trunk\impl\src\main\resources\META-INF\resources\richfaces-base-component.js
"></script>
@@ -27,7 +28,7 @@
.cb_button{ background : url(images/bg_btn.png) top left repeat-x #C0D1E7/*gradient -
from headerGradientColor to headerBackgroundColor, background-color -
headerBackgroundColor*/; text-align : center; border-left : 1px solid
#A6A6A6/*panelBorderColor*/; width : 15px; position : absolute; top : 0px; right : 0px;
height : 200px; padding-top : 1px }
.cb_button_arrow{ background : url(images/down.gif) center no-repeat; cursor :
pointer;}
- .cb_list_cord{ position : relative; font-size : 0px;display : none}/*DDL is
hidden!!!!!*/
+ .cb_list_cord{ position : absolute; font-size : 0px;display : none}/*DDL is
hidden!!!!!*/
.cb_list_position{ position : absolute; top: 0px; left: -1px; }
.cb_list_decoration{ border : 1px solid #A6A6A6 /*panelBorderColor*/; padding : 0px;
background : #FFFFFF; /*tableBackgroundColor*/}
.cb_list_scroll{ overflow : auto; overflow-x : hidden; list-style: none; margin:0px;
padding:0px;}
Modified:
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/script/SelectBase.js
===================================================================
---
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/script/SelectBase.js 2010-07-06
16:55:26 UTC (rev 17744)
+++
root/ui-sandbox/inputs/trunk/combobox/src/main/resources/META-INF/resources/script/SelectBase.js 2010-07-06
17:01:55 UTC (rev 17745)
@@ -210,7 +210,7 @@
name:"SelectBase",
show: function (event) {
if (this.onBeforeShow(event)!=false) {
- $(rf.getDomElement(this.selectId)).show();
+ $(rf.getDomElement(this.selectId)).setPosition({id: this.fieldId},
{type:"DROPDOWN", offset:[0,20]}).show();
this.isVisible = true;
this.scrollElements = rf.Event.bindScrollEventHandlers(this.selectId, this.hide,
this, this.namespace);
if (this.onShow) {