Bug: Scaling DisplayObject with TextField Child
Hi,
my app has a number of DisplayObjectsContainers of type Sprite. Among others, these objects each have a TextField as their child. Scaling the Sprite object does not properly scale its child TextField. Also, in case the Sprite object is not scaled directly, but indirectly by adding it to a scaled Container, AIR 2.6 shows the same behaviour on the iPad. renderMode is set to gpu.
Seems to me like a bug, since the same code runs properly on desktop and on android.
How can this be solved??
Thanks in advance
LLD
So I'm the only one with this problem? I still hope to get some feedback on that one.
Below is a small class that shows the problem. Just add it to your project, instantiate it and put it on the stage. Don't forget to set renderMode to gpu and let it run on iPad and on other platforms. You see the difference?
Here's the code:
package
import flash.display.Sprite;
import flash.events.TimerEvent;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.utils.Timer;
public class TestScale extends Sprite
private var ScaleObj:Sprite;
private var TF:TextField;
private var _timer:Timer;
private var _scale:Number = 1.0;
private var _dir:int = 1;
public function TestScale()
super();
this.graphics.beginFill(0x333333);
this.graphics.drawRect(0,0,500,500);
this.graphics.endFill();
ScaleObj = new Sprite();
ScaleObj.graphics.lineStyle(1,0x000000);
ScaleObj.graphics.beginFill(0xeeeeee);
ScaleObj.graphics.drawRoundRect(0,0,150,40, 6,6);
ScaleObj.graphics.endFill();
ScaleObj.x = 100;
ScaleObj.y = 100;
TF = new TextField();
TF.width = 140;
TF.x = 4;
TF.y = 5;
TF.defaultTextFormat = new TextFormat("_sans", 15, 0x000000);
TF.text = "Just a scaling test";
TF.selectable = false;
ScaleObj.addChild(TF);
addChild(ScaleObj);
_timer = new Timer(200);
_timer.addEventListener(TimerEvent.TIMER, onTick);
_timer.start();
private function onTick(event:TimerEvent):void
_scale += 0.1 * _dir;
if(_scale > 2.0 || _scale < 0.2)
_dir = _dir * -1;
ScaleObj.scaleX = _scale;
ScaleObj.scaleY = _scale;
Thanks in advance for any helpful input!!
Best regards
LLD
Similar Messages
-
Is it a bug? GridBagLayout with textField
Hi,
The following method does not work fine.
The textfield field gets all the space
but if i change
JTextField field = new JTextField();
with
JPanel field = new JPanel();
it will work fine.
I think there is a problem with GridBagLayout
and textField. is it a bug in jdk1.2
public JPanel getCPane() {
int XUNIT = 5;
int YUNIT = 100;
JPanel pane = new JPanel();
JPanel pane1 = new JPanel();
JTextField field = new JTextField();
pane1.setBackground(Color.red);
pane1.setPreferredSize(new Dimension(2*XUNIT, YUNIT));
field.setPreferredSize(new Dimension(6*XUNIT, YUNIT));
pane.setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.fill = GridBagConstraints.BOTH;
c.insets = new Insets(0,0,0,0);
c.weightx = c.weighty = 0;
c.gridx = 0; c.gridy = 0;
c.gridwidth = 2*XUNIT; c.gridheight = YUNIT;
pane.add(pane1, c);
c.weightx = c.weighty = 1;
c.gridx = 2; c.gridy = 0;
c.gridwidth = 6*XUNIT; c.gridheight = YUNIT;
pane.add(field, c);
return pane;Any solution please
-
Bug/scaling issue with Adobe CC etc on 4K displays
Hi, I'm an issue with Photoshop in particular, but it also happens with some other programs.
My screen is 4K Ultra HD and because of this the menus etc. appear incredibly small at the side of the screen (see photo). This is the case with some other programs as well (but not the very recent ones such as Microsoft Office 2013).
This is the latest trial version of Photoshop CC, but also happens with my previous CS3 versions which I installed and my Sony Vegas software too.
I've tried lowering the resolution on the computer to 1920x1080 instead of the default Ultra HD (3840x2160) but when I do that the entire desktop becomes large and pixelated, but the problem in the Photoshop programs remain.
Any help would be really appreciated. I bought this laptop specifically for graphic design and illustration but this issue makes that impossible. Thank you.Thanks so much, it seems simple now you say it but I couldn't figure it out!
Thanks for the quick reply, too! -
I work with a child who has physical disability and cannot move his neck. The ipad needs to be eyelevel in order for him to see it, but he also is not able to raise his hand and would need mouse access... is this possible?
I'm sorry but the iPad does not work with a mouse, there is no cursor on the iPad and the iPad was designed as a touch screen device so a mouse will not work.
I really don't know what to suggest other than this new device, and it might be worth a look. I assume that the child can use his hands for a keyboard.
http://www.thinkgeek.com/product/e722/ -
Insert Record with Parent/Child Tables doesn't work with Oracle - unlike AC
Hi,
I just Migrated a MS Access 2010 Database to an Oracle 11g Backend with the SQL Developer Tool.
The Migration went fine, all the Tables and Views are migrated.
I'm working with MS Access as Frontend.
The application has some Datasheets with Subdatasheets with Parent/Child Relationship. (1-n Relationship)
After changing to Oracle, it's not possible, to Insert a new Record in a Subdatasheet I always get the following Error Message:
"The Microsoft Access database engine cannot find a record in the table 'xxxx' with key matching field(s) 'zzzzz'"
It used to work perfect with the MS Access Backend, do I need a trigger which first adds the child Record ?
Or what should I do?
Thank youHi Klaus,
Thanks for your answer. I still haven't solved my problem. The only way would be to use a singel 1:n Relationship, but in fact I need a n:m Relationship.
I tried the same scenario with a new Access Application, same result.
To clearify my problem.
Goal: Parent Form with Parent Records, Linked Child Form with Child Records in a Datasheet View => Insert of a NEW Child Record.
I have 3 Tables (table1 = Parent tabel, table2 = Child Table, table12 = n:m Tabel with PK and two FK)
The Recordsource of the Parent Form is Tabel1
The Recordsource of the Child Form is Table2 joined with Table12.
In my Old Access Project, Access Triggered the Insert and filled Table12 with the NEW PK of Table2.
It seems like Access can't do that anymore....
I'm pretty desperate and I'm sure it is just a litte thing to fix..... -
Scaling issues with Windows 8.1 and 3200x1800 displays?
What about scaling issues with CS6 Illustrator and Photoshop? I have a hidpi 3200x1800 13" laptop with win 8.1 and can't use the software because of the tiny text.
Thanks,
PK
Sent from my iPhoneCS6 was released before HiDpi displays were common and there are no adjustments in that program.
You can try going into Preferences > Interface and changing the UI Font Size to Large.
You could also try lowering your display resolution until is decently readable.
Another step is joining Creative Cloud. Photoshop CC 2014 has 200% UI Scaling.
$50/month for all apps or $10/month for Photoshop/Lightroom.
There are intro and educational offers if you can get on them.
Gene -
Error with Parent-Child Hierarchies in BIEE11.1.1.5
Hi ,
I am using BIEE11.1.1.5, I have created a Logical Dimensions with Parent-Child Hierarchies,
In answer,I draged the Hierarchies named 'H5 Sales Rep', then view the results,
It has error,error message as follows:
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 22056] To use hierarchical functions, you need to associate a Closure Table with Logical Table Source 'LTS1 Sales Rep'. (HY000)
SQL Issued: SELECT 0 s_0, "Sample Sales"."Sales Rep"."Sales Rep Name" s_1, CASE WHEN ISLEAF("Sample Sales"."Sales Rep"."H5 Sales Rep") THEN 1 ELSE 0 END s_2, IDOF("Sample Sales"."Sales Rep"."H5 Sales Rep") s_3, PARENT("Sample Sales"."Sales Rep"."H5 Sales Rep") s_4 FROM "Sample Sales" WHERE ISROOT("Sample Sales"."Sales Rep"."H5 Sales Rep")
anyone know why???
Thank you!Hi Leo,
Did you configure closure table? http://www.rittmanmead.com/2010/11/oracle-bi-ee-11g-parent-child-hierarchies-multiple-modeling-methods/
Also make sure to perform the hierarchy changes in offline mode.
Regards,
Dpka -
Master table with two child tables in ADF Framework
Hi,
I'm trying to implement single master with two detail tables using oracle adf framework of Jdev 11.1.1.4.0. I'm able to do single master-detail by using view link but unable to achieve nested details block i.e., master with nested child blocks.
I created Query based view object of Master and two query based view objects as details. Then I created two view link for master with first child and another view link for master with second child. Even then in my data controls I see as two different components which is incorrect.
Please let me know how to create a data control for an example shown below:
Fruits [MASTER]
--- Details of Fruits as adf table
-- Apples [FIRST CHILD]
---- Details of Apples as adf table
-- Oranges [SECOND CHILD]
---- Details of Oranges as adf table
Regards,
Amar.You need two viewLinks
Fruits->Apples
Fruits->Oranges
Then in the data model you pick the Fruits entry that has:
Fruits
|--->Apples
You stand on Fruits and you shuttle the Oranges to be under it from the left.
If you'll use the default HR schema you'll see this type of relation for Employees:
https://blogs.oracle.com/shay/entry/master_with_two_details_on_the -
BUG No Toplink with HSQLDB support
1. Start HSQLDB in server mode
2. Log in as SA
3. Create two tables (in public schema, which is the default) with parent-child relation
4. Create new schema, switch to new schema
5. Create two tables (in public schema, which is the default) with parent-child relation in new schema
6. Create HSQLDB library in JDeveloper
6. Create connection in JDeveloper jdbc:hsqldb:hsql://...
7. Create JDeveloper project
8. Create Toplink map
9. Start "Java Objects from Tables" wizard.
10a. Select a table from public schema
11a. "Public schema is only for synonyms" error message appears
10b. Select a child table from the other schema.
11b. "A foreign key constraint must define at least one column" error message appears
I am using JDeveloper 10.1.3.1.0.3914 and HSQLDB 1.8.0.Hi,
don't have HSQLDB for testing, but typing HSQLDB TopLink into a Google search brought up many messages of people that got this combination working.
I suggest to post this question on the TopLink forum here on OTN
Frank -
Is there a bug or problem with increased noise when exporting pictures out of Lightroom 4?
Is there a bug or problem with increased noise when exporting pictures out of Lightroom 4?
As you are asking about it, looks like you do see a problem. So if googling does not provide a solution, you should describe the issue in detail so we can try to help out.
-
Getting the parenet id along with the child ids in hierarchy query results
create table test_test2 (do_id_tp varchar2(32),do_id number ,do_up_tp varchar2(32),do_up_id number)
insert into test_test2 values('A_S',100170,'A_S',100001);
insert into test_test2 values('A_S',1001054,'A_S',100001);
insert into test_test2 values('A_S',1001055,'A_S',100001);
insert into test_test2 values('A_S',1001053,'A_S',100001);
insert into test_test2 values('A_S',1001056,'A_S',100001);
insert into test_test2 values('A_S',1001051,'A_S',100001);
insert into test_test2 values('A_S',1001052,'A_S',100001);
insert into test_test2 values('A_S',100358,'A_S',100170);
insert into test_test2 values('A_S',100359,'A_S',100170);
insert into test_test2 values('A_S',100441,'A_S',100170);
insert into test_test2 values('A_S',1001047,'A_S',100441);
9/code]
Upon executing the following query , i'm getting the childs of 100001 and the childs of childs of 100001 etc..
That if fine .But in the output i'm not getting the parent id i.e; 100001 (which is in the where condition)
How to get the parenet id along with the childs id.( without writing the UNION select 100001 from dual)SELECT do_id
FROM (
SELECT d.do_id, d.do_up_id
FROM test_test2 d
WHERE d.do_up_tp = 'A_S' ) m
CONNECT BY NOCYCLE PRIOR m.do_id = m.do_up_id
START WITH m.do_up_id =100001
Edited by: smile on Jan 12, 2012 6:50 PMIf you wish the root parent as a column in your select, you can use CONNECT_BY_ROOT:
SELECT
connect_by_root(do_up_id) root,
do_up_id parent,
do_id
FROM (
SELECT d.do_id, d.do_up_id
FROM test_test2 d
WHERE d.do_up_tp = 'A_S'
) m
CONNECT BY NOCYCLE PRIOR m.do_id = m.do_up_id
START WITH m.do_up_id =100001;But if you really wish an extra row in your output with 100001, then your problem is that you do not have a record in your data with do_id = 100001.
Then you either need such a record in your data, or you need to create such a row with for example union all - something like this:
SELECT
do_id
FROM (
SELECT d.do_id, d.do_up_id
FROM test_test2 d
WHERE d.do_up_tp = 'A_S'
UNION ALL
SELECT 100001 do_id, NULL do_up_id
FROM DUAL
) m
CONNECT BY NOCYCLE PRIOR m.do_id = m.do_up_id
START WITH m.do_up_id IS NULL; -
Revision: 13914
Revision: 13914
Author: [email protected]
Date: 2010-02-01 16:02:58 -0800 (Mon, 01 Feb 2010)
Log Message:
1. Fix a bug that deals with discontinuity of fragments. This is the first check in of the fix. More extensive testings may discover other issues.
2. Apply a patch from Matthew, quoted from Matthew's email:
This one should pick up ?\226?\128?\156play now can take a starting offset?\226?\128?\157, stubs out ?\226?\128?\156play for duration?\226?\128?\157, and also picks up ?\226?\128?\156data messages are lost during enhanced seek?\226?\128?\157.
Modified Paths:
osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPNetStream.as
osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/AdobeFragmentRunTable.as
osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FIndexHandler.asThanks.
I actually figured a better solution which was putting the fix right into VASTTrackingProxyElement.as so that VAST2TrackingProxyElement.as just inherits it, since I saw same issue with VAST1 ads as well!
Cheers,
mark -
Does anyone have a link to common bugs/problems encountered with flex 3?
Hi,
does anyone have a link to common bugs/problems encountered
with flex 3, just so i can try and familarise myself before I go
asking etc? thanks folks!!flex warnings:
http://livedocs.macromedia.com/flex/2/langref/compilerWarnings.html
flex errors
http://livedocs.macromedia.com/flex/2/langref/compilerErrors.html -
Hi.i want to select only rows with no child rows
Hi.i want to select only rows with no child rows in hierarchical queries.
http://www.rampant-books.com/10g_80.htm
bye
TPD -
When executing an external app, how do I keep stdout with its child process
I running an external application from java, but I want the stdout to remain with the child process. This app spawns its own output window where it displays its own output and error messages. I'm running the app using the following code:
Process p = Runtime.getRuntime().exec(command, null, workingDirectory);
But the Process class grabs the stdout and stderr of the application it runs and holds on to them.
Any suggestions on how can I still run the program without Java grabbing the application's stdout and stderr streams?In Windows, this works for me.
I don't remember why it is so convoluted, but this is what I came up with:
// Closes after completion
Runtime.getRuntime().exec(
new String[] { "cmd", "/C", "start", "/WAIT", "cmd", "/C", command } ).waitFor();
// Waits for you to close the command prompt window
Runtime.getRuntime().exec(
new String[] { "cmd", "/C", "start", "/WAIT", "cmd", "/K", command } ).waitFor();where command can be any internal command, executable, batch file.
Edited by: baftos on Feb 2, 2009 4:31 PM
Maybe you are looking for
-
Urgent!doubt in upload the file to a particular directory.
Hi Actually i'm developing a site using JSP. Main concept of the project is the user should be able to access his files or dabases from anywhere in the world thru internet via intranet. i've placed upload option in my site. each user should b given a
-
Why can't I access a list of details like noise ratio and attenuation any more. Clicking on troubleshooting says that these details are.available and may be needed if the helpdesk is contacted, it used to be possible to get to it from a link at the t
-
I want to view a text file from my new ipod Nano, which I have enabled for file use. I am using Word for Mac, I put the Word file in my Notes folder. But when I disconnect the ipod, while I can see the file in my notes folder, I am not able to view t
-
Creating addon installers for SBO 9.0 64-Bit (AddOnInstallAPI_x64)
Hi guys, I experience some challenge getting my addon to install successfully on a 64-bit SBO 9.0 I noticed there are a couple of discussions touching on this very subject. So I have successfully installed my addon on the 32-bit edition of SBO 9.0 My
-
System copy of a ABAP+J2EE WAS 6.40 system - issue w. J2EE instance/Mapbox
Hi guys and girs! I'm doing a system copy of a CRM 4 system based on Web AS 6.40 and with a dual stack system. The J2EE instance is only used for Mapbox and nothing else. I've done a system export of the J2EE instance on the source system, but when I