It is working well on windows, ipad, but on iphone it is higher.
(I used iphone 3G.)
here is used code:
// background
CCSprite* background = CCSprite::spriteWithFile(FISHING_DIR"dialog_background.png");
CCSize backSize = background->getContentSizeInPixels();
float scale= sizeInPixels.height/768; // 1 for ipad
setScale(scale);
CCRect rect = background->boundingBoxInPixels();
addChild(background);
float leftX = 0.35f;
float rightX = 0.9f;
float upY = 0.72f;
float downY = 0.1f;
// text sprite
CCSize dimension = CCSizeMake((rightX-leftX)*background->getContentSize().width * scale, 0);
CCSprite* textSprite = CCLabelTTF::labelWithString(m_text.c_str(), "Berlin Sans FB Demi", 32*winSize.height/320);
CCSize textSize = textSprite->getContentSize();
textSprite->setAnchorPoint(ccp(0.5f, 0.5f));
addChild(textSprite, 1); /////////// <<<<<<<<<<<<<< this sprite is higher <<<<<<<<<<<<<<<<<<<<<<<<<
float downWeight = 0.4f;
textSprite->setPosition(ccp(((leftX+rightX)/2-0.5f)* background->getContentSize().width,(downY*downWeight+upY*(1-downWeight)-0.5f)*background->getContentSize().height));