mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 17:46:29 +03:00
Fix line-height.
This commit is contained in:
@@ -170,6 +170,14 @@ UTEST( UIRichText, anchorMargins ) {
|
||||
SceneManager::instance()->draw();
|
||||
win->display();
|
||||
|
||||
auto anchors = sceneNode->getRoot()->findAllByTag( "a" );
|
||||
|
||||
for ( auto anchor : anchors ) {
|
||||
auto a = anchor->asType<UIAnchorSpan>();
|
||||
EXPECT_EQ( anchor->getPixelsSize().getHeight(),
|
||||
a->getFont()->getLineSpacing( a->getFontSize() ) );
|
||||
}
|
||||
|
||||
compareImages( utest_state, utest_result, win, "eepp-ui-anchor-margins", "html" );
|
||||
|
||||
Engine::destroySingleton();
|
||||
|
||||
Reference in New Issue
Block a user