Bug 511516

Summary: TabPage: the off screen tab page should not have the "showing" state
Product: [Mono] UI Automation Reporter: Feng Xia Mu <fxmu>
Component: Winforms - GeneralAssignee: E-mail List <mono-a11y-bugs>
Status: REOPENED --- QA Contact: E-mail List <mono-a11y-qa>
Severity: Normal    
Priority: P2 - High CC: cachen
Version: Release 1.0   
Target Milestone: ---   
Hardware: i586   
OS: openSUSE 11.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: the "Tab 5"'s state
the "Tab 6"'s state

Description Feng Xia Mu 2009-06-10 08:18:47 UTC
Comment:
when the  TabPage sample is launched on Windows, we can see its "Visibility" on UISpy:
"
"Tab item" "Tab 0"                     IsOffscreen:                     "False" 
"Tab item" "Tab 1"                     IsOffscreen:                     "False"
"Tab item" "Tab 2"                     IsOffscreen:                     "False"
"Tab item" "Tab 3"                     IsOffscreen:                     "False"
"Tab item" "Tab 4"                     IsOffscreen:                     "False"
"Tab item" "Tab 5"                     IsOffscreen:                     "True"
"Tab item" "Tab 6"                     IsOffscreen:                     "True"
"

so, for the "Tab 5" and "Tab 6" which are not showing on TabPage Sameple , they should have not 'showing' state. if other "Tab"s not not showing on screen, they should have 'showing' state too.
 
REPRO:

1. run uia2atk/test/samples/tabpage.py
2. run accerciser, expand 'page tab list',select from "Tab 0" to "Tab 6" 
3. under interface viewer, see their states
4. click the right label arrow all the time, make only "Tab 6" can be seen. 
5. in accerciser, select from "Tab 0" to "Tab 6",under interface viewer, see states

RESULTS:
step 3: all the "tab page" have 'showing' state 

step 6: all the "tab page" have 'showing' state 

EXPECTED RESULTS:
step 3: refer to Comment, "Tab 5" and "Tab 6" should not have 'showing' state

step 6: only "Tab 6" can have 'showing' state
Comment 1 Feng Xia Mu 2009-06-24 06:18:00 UTC
after discussing with Calen, our conclusion is : although the "Tab5" and "Tab 6" is not seeing on the "page tab list" , but they actually on the "Tab control" frame, can have the 'showing' state.  look at the two attachment. so close this bug.
Comment 2 Feng Xia Mu 2009-06-24 06:19:47 UTC
Created attachment 299919 [details]
the "Tab 5"'s state
Comment 3 Feng Xia Mu 2009-06-24 06:20:35 UTC
Created attachment 299921 [details]
the "Tab 6"'s state
Comment 4 Feng Xia Mu 2009-06-24 06:28:05 UTC
if we enlarge the screen resolution, the "Tab 6" will not on the "Tab control" frame as well as been removed the "showing" state, so if you have any other ideas welcome to discuss:)
Comment 5 Brian Merrell 2009-06-24 14:52:14 UTC
(In reply to comment #4)
> if we enlarge the screen resolution, the "Tab 6" will not on the "Tab control"
> frame as well as been removed the "showing" state, so if you have any other
> ideas welcome to discuss:)

Just wanted to clarify this statement.  What Felicia is saying is that when the "page tab" accessible is completely outside the boundaries of the application frame, that "page tab" accessible will not have the showing state.
Comment 6 Brian Merrell 2009-06-24 14:56:35 UTC
I actually think this is a valid bug.  To me, I think it is reasonable to expect that a "page tab" accessible that is completely outside of the boundaries of the "page tab list" should not have the "showing" state even if it is within the boundaries of the application frame.  

It would be nice to get some developer feedback here.  I am CCing Brad (who worked on this).
Comment 7 Feng Xia Mu 2009-06-25 01:31:14 UTC
Thanks Brian, I will reopen this bug waiting to get the feedback.
Comment 8 calen chen 2009-06-25 02:33:17 UTC
(In reply to comment #6)
> I actually think this is a valid bug.  To me, I think it is reasonable to
> expect that a "page tab" accessible that is completely outside of the
> boundaries of the "page tab list" should not have the "showing" state even if
> it is within the boundaries of the application frame.  
> 
> It would be nice to get some developer feedback here.  I am CCing Brad (who
> worked on this).

I were thinking like yours that 'page tab' shouldn't have showing state if outside of the 'tab control', and UISpy shows 'IsOffscreen = True' for page_tabs those outside of the 'tab control'. Then we discussed with Matt who thought it's possible to be showing if page_tab just outside of the 'tab control' but not outside of the frame, because those page_tabs have got position. so..I have no idea, wait Brad's idea :)
Comment 9 Brad Taylor 2009-06-26 18:16:55 UTC
Yeah, I agree with Brian here.