Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25073] Windows: Alert Dialog showing two titles

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionNot Our Bug
Resolution Date2017-08-08T04:00:47.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterNeeraj Mishra
AssigneeKota Iguchi
Created2017-08-08T01:03:31.000+0000
Updated2017-08-16T01:02:55.000+0000

Description

Problem Description:

Windows Alert Dialog showing two titles while on iOS/Android there is only one title exist.

Steps to Reproduce:

1. Run the below sample code with "app build -p windows -T ws-local"
Ti.UI.setBackgroundColor('white');
var win = Ti.UI.createWindow({  
  title: 'Click window to test',
  backgroundColor: 'white',
exitOnClose: true,
fullscreen: false
});

win.addEventListener('click', function(e){
  var dialog = Ti.UI.createAlertDialog({
    message: 'The file has been deleted',
    ok: 'Okay',
    title: 'File Deleted'
  });
  dialog.show();
});
win.open();
3. Click on the screen anywhere. 4. An alert dialog will appear with the title displayed two times as " !Windows Alert Dialog.png|thumbnail! ". 5. On iOS, it only shows single title and then message.

Expected Result:

Title should appear only once. Windows doc also shows only single title on dialogs. https://docs.microsoft.com/en-us/windows/uwp/controls-and-patterns/dialogs

Attachments

FileDateSize
iOS Alert Dialog.png2017-08-08T01:05:57.000+000059573
Windows Alert Dialog.png2017-08-08T01:05:57.000+000074971

Comments

  1. Kota Iguchi 2017-08-08

    It turns out Windows::UI::Popups::MessageDialog.Title does this all, seems like it only happens on Windows 10 Store app. Resolving this as "not our bug".
  2. Neeraj Mishra 2017-08-08

    thanks [~kiguchi]
  3. Lee Morris 2017-08-16

    Closing with reference to the above observations.

JSON Source