Vertical scroll up/down when expand or collapse tree items
Hi everyone, I'm newbie in adobe flex. Is it possible to makes vertical scroll position automatically scroll up and down when tree component expand/collapse?
I would like to make automatically scroll position likes in tree of windows explorer. Any idea to makes it work?
Regards,
Gus Leo
Yeah!!!after trial and error with this issue i find some logic to makes vertical scroll down automatically likes windos explorer.
I'm attach some code with about this issue and hopes this will be useful for other developer.
Put the code on ItemOpen on tree component
private function onItemOpen(event:TreeEvent):void{
//rowHeight is default height of tree and +2 is my own logic, because they have a space between a tree
var _rowHeight:int = int(event.currentTarget.rowHeight) + 2;
var posX:int = int(event.currentTarget.mouseY);
var _maxHeight:int = myTree.height;
var itemCount:int = int(event.item.children.length);
//cheking the current position and calculation of droping index
if (((itemCount*_rowHeight) + posX) > _maxHeight){
var _currpos:int = posX + _rowHeight;
var _heightCount:int = _rowHeight;//default height count is the _rowHeight
for (var i:int = 0;i<itemCount;i++){
_currpos = _currpos + _rowHeight;
_heightCount = _heightCount + _rowHeight;
//if the the count of height itemschild > than the tree height so stop to add scrollposition
if (_maxHeight < _heightCount ){
break;
}else if (_maxHeight < _currpos){
myTree.verticalScrollPosition = myTree.verticalScrollPosition + 1;
Message was edited by: Gus Leo
Similar Messages
-
Vertical scroll bar disappears when I minimize the screen
I have Firefox 10.0.2. I do have a vertical scroll bar with both the up and down button; however, they all disappear when I minimize the screen. When I am in Ancestry, for example, when I minimize I get a horizontal scroll bar but there is no vertical scroll bar. I have no clue what to do. I minimize screens a lot when I am in Ancestry and it gets very frustrating. Can anyone help?
Hi,
Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode].
[http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
[https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
[http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
[http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]
Safe mode disables the installed '''Extensions''', and themes ('''Appearance''') in '''Tools''' ('''Alt''' + '''T''') > '''Add-ons'''. Hardware acceleration is also temporarily disabled - the manual setting is '''Tools''' > '''Options''' > '''Advanced''' > '''General''' > '''Use hardware acceleration when available'''. [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Advanced%20panel?as=u Options > Advanced]. All these settings/add-ons can also be individually or collectively disabled/enabled/changed in Firefox normal mode to check if an extension, theme or hardware acceleration is causing issues.
If the problem persists, you can also try disabling the '''Plugins''' in Tools > Add-ons temporarily to check. -
I need to turn the horizontal and vertical scroll bars off when in full screen mode is this possible
I am using a touchscreen monitor and am running the website at 1280 x 1024, however there are scroll bars and I dont want them and I dont want to alter the HTML
Try this code in the file [http://kb.mozillazine.org/userContent.css userContent.css]
<pre><nowiki>html,body { overflow: hidden !important; }</nowiki></pre>
* http://kb.mozillazine.org/Editing_configuration
* ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html -
Firefox closing down when trying to pay for items on amazon and scotts
since last night everytime i click to go to pay for items on amazon and scotts and some other dites it says firefox has encountered an error and needs to close,seems to be fine til it needs to load payment page,someone please help its highly annoying now
Hi..
No, I don't think you need to rebuild the computer.
From your Safari menu bar top of your screen click Safari > Preferences then select the Security tab.
Click Show Cookies. Type facebook in the search field top right corner of that window then click Remove All > Done. That will remove Facebook cookies.
Now back to the menu bar, clck Safari > Empty Cache
Quit and relaunch Safari.
See if that made a difference...
If that didn't help, open the Finder.
From the Finder menu bar click Go > Go to Folder
Type this exactly as you see it here: ~/Library/Safari
Click Go.
Move these files from the Safari folder to the Trash.
LastSession.plist
History.plist
Downloads.plist
Quit then relaunch Safari. Try Facebook.
For pop ups... Safari menu bar again. click Safari > Preferences then select the Security tab.
You can enable or disable: Block pop-up windows anytime.
edited by: cs -
ADF Table vertical scroll issue in Chrome & Safari, works fine in FF & IE
Hi,
Jdeveloper 11.1.1.7.0
ADF BC & ADF Faces
I have a jspx page with a command link. On click of link, opening a popup. Displaying a ADF table inside popup dialog.
Problem Statement : I have set contentDelivery="immediate" & autoHeightRows="8" in ADF table. while running the application in Chrome & Safari and moving vertical scroll up & down rapidly, first few rows & last few rows are not visible respectively. But if i scroll up & down using scroll arrow it's working as expected.
But there is NO issue while running the application in IE & FF and moving vertical scroll up & down rapidly.
FF 26.0
Safari 5.1.7
IE 8.0
Chrome 31.0.1650.63 m
JSPX Code :
[code]
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:commandLink text="Customize" id="cl1">
<af:showPopupBehavior popupId="p1" triggerType="action"/>
</af:commandLink>
<af:popup id="p1">
<af:dialog id="d2" type="none">
<af:panelGroupLayout id="pgl1">
<af:table value="#{bindings.XXXXView1.collectionModel}"
var="row"
rows="#{bindings.XXXXView1.rangeSize}"
emptyText="#{bindings.XXXXView1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.XXXXView1.rangeSize}"
rowBandingInterval="0" id="t1" autoHeightRows="8"
contentDelivery="immediate">
<af:column sortProperty="#{bindings.XXXXView1.hints.ProductOrder.name}"
sortable="false"
headerText="#{bindings.XXXXView1.hints.ProductOrder.label}"
id="c4">
<af:inputText value="#{row.bindings.ProductOrder.inputValue}"
label="#{bindings.XXXXView1.hints.ProductOrder.label}"
required="#{bindings.XXXXView1.hints.ProductOrder.mandatory}"
columns="#{bindings.XXXXView1.hints.ProductOrder.displayWidth}"
maximumLength="#{bindings.XXXXView1.hints.ProductOrder.precision}"
shortDesc="#{bindings.XXXXView1.hints.ProductOrder.tooltip}"
id="it1">
<f:validator binding="#{row.bindings.ProductOrder.validator}"/>
<af:convertNumber groupingUsed="false"
pattern="#{bindings.XXXXView1.hints.ProductOrder.format}"/>
</af:inputText>
</af:column>
<af:column sortProperty="#{bindings.XXXXView1.hints.SerialNo.name}"
sortable="false"
headerText="#{bindings.XXXXView1.hints.SerialNo.label}"
id="c2">
<af:inputText value="#{row.bindings.SerialNo.inputValue}"
label="#{bindings.XXXXView1.hints.SerialNo.label}"
required="#{bindings.XXXXView1.hints.SerialNo.mandatory}"
columns="#{bindings.XXXXView1.hints.SerialNo.displayWidth}"
maximumLength="#{bindings.XXXXView1.hints.SerialNo.precision}"
shortDesc="#{bindings.XXXXView1.hints.SerialNo.tooltip}"
id="it5">
<f:validator binding="#{row.bindings.SerialNo.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="#{bindings.XXXXView1.hints.SystemId.name}"
sortable="false"
headerText="#{bindings.XXXXView1.hints.SystemId.label}"
id="c1">
<af:inputText value="#{row.bindings.SystemId.inputValue}"
label="#{bindings.XXXXView1.hints.SystemId.label}"
required="#{bindings.XXXXView1.hints.SystemId.mandatory}"
columns="#{bindings.XXXXView1.hints.SystemId.displayWidth}"
maximumLength="#{bindings.XXXXView1.hints.SystemId.precision}"
shortDesc="#{bindings.XXXXView1.hints.SystemId.tooltip}"
id="it2">
<f:validator binding="#{row.bindings.SystemId.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="#{bindings.XXXXView1.hints.SystemName.name}"
sortable="false"
headerText="#{bindings.XXXXView1.hints.SystemName.label}"
id="c5">
<af:inputText value="#{row.bindings.SystemName.inputValue}"
label="#{bindings.XXXXView1.hints.SystemName.label}"
required="#{bindings.XXXXView1.hints.SystemName.mandatory}"
columns="#{bindings.XXXXView1.hints.SystemName.displayWidth}"
maximumLength="#{bindings.XXXXView1.hints.SystemName.precision}"
shortDesc="#{bindings.XXXXView1.hints.SystemName.tooltip}"
id="it3">
<f:validator binding="#{row.bindings.SystemName.validator}"/>
</af:inputText>
</af:column>
<af:column sortProperty="#{bindings.XXXXView1.hints.ModelNumber.name}"
sortable="false"
headerText="#{bindings.XXXXView1.hints.ModelNumber.label}"
id="c3">
<af:inputText value="#{row.bindings.ModelNumber.inputValue}"
label="#{bindings.XXXXView1.hints.ModelNumber.label}"
required="#{bindings.XXXXView1.hints.ModelNumber.mandatory}"
columns="#{bindings.XXXXView1.hints.ModelNumber.displayWidth}"
maximumLength="#{bindings.XXXXView1.hints.ModelNumber.precision}"
shortDesc="#{bindings.XXXXView1.hints.ModelNumber.tooltip}"
id="it4">
<f:validator binding="#{row.bindings.ModelNumber.validator}"/>
</af:inputText>
</af:column>
</af:table>
</af:panelGroupLayout>
</af:dialog>
</af:popup>
</af:form>
</af:document>
</f:view>
</jsp:root>
[/code]
Any help will be appreciated.
~AbhijitHi,
We are seeing this behaviour too - JDEV 11.1.1.7 with WLS 10.3.6.
Anybody got any suggestions?
Thanks
Jon -
Expand/ Collapse tree funtion does not exist in new appraisals
Hi all,
I have been implementing the new objective setting and appraisals system and the old function of expand and collapse tree does not appear in the screen. this function was very useful because it is more user friendly.
Is it somewhere in configuration or this feature does not exist in the mewer version??
Should I open a sap message?
thank youHi
Wat is the update?
Thanks
Sivab -
Firefox 4.0 on Mac OS 10.6.7 When I open Firefox it does not show the right vertical scroller. I have to take my mouse to the lower right corner and drag it open slightly and the scoller appears It will stay active through other tabs now until I close or shut down firefox. Once I reopen the same thing again no vertical scroller bar.
Yes AT&T is my ISP. I use DSL. Currently I am not at my home address. I am currently on a cable modem on COX.com.
I am also receiving a warning message "WARNING: Parental control appears compromised!". -
Hi,
Suddenly while working with Firefox if I happen to drag the vertical scroll bar, a very abnormal behavior occurs. My screen dances up and down for a short time before either going black or getting restored but with no clicks working. The only way to resume is to force a restart of the system.
Any help would be deeply appreciated.
Thanks and Regards
DeepakThat didn't work. On trying to install a new driver I got the error the graphics driver could not find compatible graphics hardware. Is there anything else that can be done to at least prevent the hanging of the computer even if it means less features from Firefox being available?
-
I've created a hero slideshow on the homepage. It is "unpinned", however it doesn't move vertically with the rest of the content when scrolling up/down. It stays in its same spot and the other page content scrolls correctly.
Hi Aish!
Sadly, it is showing as unpinned in my file and I re-published the file and the carousel is still stuck. I've attached a screen capture showing the webpage (left, scrolled) and the muse file (right).
I'm sure this is something I'm doing wrong, do you have any other ideas?
Thanks so much for your help. Do you work for Adobe? If you do, I have other Muse questions I cannot find the answer to online. If you don't work for Adobe and are just a Good Samaritan/Angel, do you know of any manuals/reference books that might help me? I've worked in psd, ai, indd for many years. But attempting the web side of design is killing me, and I'm likely to lose my client if I can't get his site together soon. Thanks again! -
In FF 4.0 why does the down arrow no longer function in the vertical scroll bar?
Prior to FF 4.0 when I positioned my cursor over the down arrow of the vertical scroll bar in Hotmail and depressed the left mouse button, the scroll bar moved downward toward the bottom of it's column limit. Now in 4.0 it turns into an adjustment cursor forcing me to readjust the size of the Hotmail window rather than moving the scroll bar down the column. This only seems to happen in Hotmail.
Check: http://kb.mozillazine.org/Website_colors_are_wrong
See:
* http://kb.mozillazine.org/Images_or_animations_do_not_load
* You can see the permissions for the domain in the current tab in Tools > Page Info > Permissions
* You can see all exceptions in Tools > Options > Content: Load Images > Exceptions
* You can check the Tools > Page Info > Media tab for blocked images (scroll through all the images)
There are also extensions (Tools > Add-ons > Extensions) that can block images. -
Drill down expand and collapse feature not available Crystal Reports Desig
Hi,
Am I right in my understanding that drill down feature opens in a new tab and it cannot be made expand and collapse even using JRC.
Please advise & thank you
SelviHi Slevi,
You are right with the understanding of the Drill down function. To have a drill down function available the minimum requirement is have at least a single group in the report.
When we have a group with some underlying data and then when we would like to see data for a particular group, we can see a u201Cmagnifying glassu201D symbol which indicates that there is data for this group and we can use the Drill down function.
When you drill on a particular group, the data for that group is shown in a new tab.
I hope this provides some information about the Drill down function used in Crystal Reports.
Regards,
Prashant Saduwale. -
I just upgraded to the new snow leopard, now my Safari is acting loopy. At times, the page will scroll down when I hit the space bar. As I type this discussion the screen isn't paging down, but if I go to the tab where I have facebook loaded and hit the space bar, it acts as a page down key. I've had safari crash about 5 times tonight for no apparent reason. The delete key sometimes will act as a page back key. I really have no idea whats going on.
I've had keyboards go wacko on me before due to something being spilled on them or a wireless problem, but this keyboard is a wired keyboard and nothing was spilled on it. It's rather new and I'm quite certain it's not a keyboard issue.
No settings have been changed on the computer. The only thing different today from yesterday, is the fact that I upgraded to snow leopard.
Help would be pretty sweet.
Thanks,
JasonI just upgraded to the new snow leopard, now my Safari is acting loopy. At times, the page will scroll down when I hit the space bar. As I type this discussion the screen isn't paging down, but if I go to the tab where I have facebook loaded and hit the space bar, it acts as a page down key. I've had safari crash about 5 times tonight for no apparent reason. The delete key sometimes will act as a page back key. I really have no idea whats going on.
I've had keyboards go wacko on me before due to something being spilled on them or a wireless problem, but this keyboard is a wired keyboard and nothing was spilled on it. It's rather new and I'm quite certain it's not a keyboard issue.
No settings have been changed on the computer. The only thing different today from yesterday, is the fact that I upgraded to snow leopard.
Help would be pretty sweet.
Thanks,
Jason -
Hi all,
The Horizontal & vertical scroll is not visible or not working when i run the form.
In this form , there are 5 canvas namely
CANVAS2 - Stacked Canvas
PASS - Content Canvas
MAT_RATES - Content Canvas
DATE - Content Canvas
PREVIOUS - Content Canvas
I have set "Show Horizontal Scroll Bar" to "Yes" and "Show Vertical Scroll Bar" to "Yes" in the WINDOW Property.
I have set "Show Horizontal Scroll Bar" to "Yes" and "Show Vertical Scroll Bar" to "Yes" in the STACKED CANVAS Property .
But still the Horizontal and Vertical Scroll Bar is not working when i run the Form.
Help me with this please. How do i make it visible??
Oracle Forms 6i..
Thank You.Vijetha wrote:
Hi all,
The Horizontal & vertical scroll is not visible or not working when i run the form.
I have set "Show Horizontal Scroll Bar" to "Yes" and "Show Vertical Scroll Bar" to "Yes" in the WINDOW Property.
I have set "Show Horizontal Scroll Bar" to "Yes" and "Show Vertical Scroll Bar" to "Yes" in the STACKED CANVAS Property .
But still the Horizontal and Vertical Scroll Bar is not working when i run the Form.
Help me with this please. How do i make it visible??
Oracle Forms 6i..
Thank You.
hello vijetha,
window and canvas show scroll bar when it need.
You should show block property
and set block scroll bar
hope this helps..
Hamid -
Adding a link to expand and collapse all DHTML drop downs
Hi, can anyone help me adapt the "Skinny on Skins" example "Add a Toolbar button to expand and collapse all DHTML drop downs" so that it will work with just a simple HTML link in RH8, instead of being attached to a custom skin button?
The example looks like this:
Step 1. Open the Skins Editor for the skin where you want to add the button.
Step 2. After the preview loads into the window, ensure that the Toolbar tab has focus, then click the plus symbol. The Custom Toolbar Item dialog should display.
Step 3. Type the Item Name (This is simply an internal reference for the button).
Step 4. Type the Text (This is the text that will be seen by the end user. The field must contain something. So if you don't want any verbiage to display for your toolbar item, simply type a space.)
Step 5. Choose your Image Options, then click the Action tab.
Step 6. Click the JavaScript option button.
Step 7. Enter the following code in the OnClick field:
javascript:toggle()
Step 8. In the JavaScript area, ensure the Inline JavaScript option button is selected, then click the edit (Pencil) icon located to the right.
Step 9. Enter the following code in the Inline JavaScript dialog
var show = "false";
function toggle() {
parent.frames[1].bsscright.focus();
var arrayofDivs = parent.frames[1].bsscright.document.all.tags('DIV');
if (show == "false") {
for (x=0;x<arrayofDivs.length;x++) { arrayofDivs[x].style.display = "block";}
show = "true";}
else {
for (x=0;x<arrayofDivs.length;x++) { arrayofDivs[x].style.display = "none"; }
show = "false"; }
Step 10. Click the OK button to close the Inline JavaScript dialog.
Step 11. Click the OK button to close the Custom Toolbar Item dialog.
Step 12. Click the OK button to close the Skin Editor.
Step 13. Generate WebHelp via File > Generate > WebHelp and ensure that you have the new button selected with a check mark. This will probably require stepping through some screens to see the place where you can select it.
Many thanks
JonathanHi again
I want to use it in the header of one of my Master Pages, so it will only be created/maintained once. Not all my pages have drop downs in so rather than have a toolbar button available for every page, I was trying to be a bit cuter by having two Master Pages - one for normal pages and one for pages with drop downs in.
I'm no javascript expert so I'll see if one of my developers can help.
Thanks anyway
Jonathan -
How to change the node's icon in a tree when the node collapse or expand?
how to change the node's icon in a tree when the node collapse or expand?
Hi,
You may need to use custom skin for that.
-Arun
Maybe you are looking for
-
I've been combing the discussion boards and the problem I'm having doesn't quite fit with the posts I've found so far. I packed up my laptop this morning and brought to work (I teach at a college) and when I pulled it out of the sleeve this evening t
-
Plsql - set a timeout on utl_tcp connection
hi, I have a utl_tcp connection and I want to define the timeout parameter before each read. How? thanks...
-
SM69 (external operating system commands)
how can i use the MKDIR dos command in SAP using SM69
-
Remove existing share folders in windows domain client machines
Hi Team, I used sysinternals tool shareenum & found in our Windows domain network many users have shared folders in their local machine which is highlighted by auditor. Now i have found a way through GP to block Filesharing but how can i remove exist
-
Is it possible to change color of slider on different values?
I'm trying to set up an instrument that receives data from a sensor. My idea is to show a sliders with the values read and accordingly represent acceptable levels in one color and whatever is above it on a different color (lets say green and red). A